max_stars_count
int64 301
224k
| text
stringlengths 6
1.05M
| token_count
int64 3
727k
|
---|---|---|
1,338 |
<filename>src/tests/kits/storage/BasicTest.cpp
// BasicTest.cpp
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <set>
using std::set;
#include "BasicTest.h"
// count_available_fds
static
int32
count_available_fds()
{
set<int> fds;
int fd;
while ((fd = dup(1)) != -1)
fds.insert(fd);
for (set<int>::iterator it = fds.begin(); it != fds.end(); it++)
close(*it);
return fds.size();
}
// constructor
BasicTest::BasicTest()
: BTestCase(),
fSubTestNumber(0),
fAvailableFDs(0)
{
}
// setUp
void
BasicTest::setUp()
{
BTestCase::setUp();
fAvailableFDs = count_available_fds();
SaveCWD();
fSubTestNumber = 0;
}
// tearDown
void
BasicTest::tearDown()
{
RestoreCWD();
int32 availableFDs = count_available_fds();
if (availableFDs != fAvailableFDs) {
printf("WARNING: Number of available file descriptors has changed "
"during test: %ld -> %ld\n", fAvailableFDs, availableFDs);
fAvailableFDs = availableFDs;
}
BTestCase::tearDown();
}
// execCommand
//
// Calls system() with the supplied string.
void
BasicTest::execCommand(const string &cmdLine)
{
system(cmdLine.c_str());
}
// dumpStat
void
BasicTest::dumpStat(struct stat &st)
{
printf("stat:\n");
printf(" st_dev : %lx\n", st.st_dev);
printf(" st_ino : %Lx\n", st.st_ino);
printf(" st_mode : %x\n", st.st_mode);
printf(" st_nlink : %x\n", st.st_nlink);
printf(" st_uid : %x\n", st.st_uid);
printf(" st_gid : %x\n", st.st_gid);
printf(" st_size : %Ld\n", st.st_size);
printf(" st_blksize: %ld\n", st.st_blksize);
printf(" st_atime : %lx\n", st.st_atime);
printf(" st_mtime : %lx\n", st.st_mtime);
printf(" st_ctime : %lx\n", st.st_ctime);
printf(" st_crtime : %lx\n", st.st_crtime);
}
// createVolume
void
BasicTest::createVolume(string imageFile, string mountPoint, int32 megs,
bool makeMountPoint)
{
char megsString[16];
sprintf(megsString, "%ld", megs);
execCommand(string("dd if=/dev/zero of=") + imageFile
+ " bs=1M count=" + megsString
+ " &> /dev/null"
+ " ; mkbfs " + imageFile
+ " > /dev/null"
+ " ; sync"
+ (makeMountPoint ? " ; mkdir " + mountPoint : "")
+ " ; mount " + imageFile + " " + mountPoint);
}
// deleteVolume
void
BasicTest::deleteVolume(string imageFile, string mountPoint,
bool deleteMountPoint)
{
execCommand(string("sync")
+ " ; unmount " + mountPoint
+ (deleteMountPoint ? " ; rmdir " + mountPoint : "")
+ " ; rm " + imageFile);
}
| 1,067 |
347 |
/* 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.cjj;
public final class R {
public static final class anim {
public static int abc_fade_in=0x7f040000;
public static int abc_fade_out=0x7f040001;
public static int abc_grow_fade_in_from_bottom=0x7f040002;
public static int abc_popup_enter=0x7f040003;
public static int abc_popup_exit=0x7f040004;
public static int abc_shrink_fade_out_from_bottom=0x7f040005;
public static int abc_slide_in_bottom=0x7f040006;
public static int abc_slide_in_top=0x7f040007;
public static int abc_slide_out_bottom=0x7f040008;
public static int abc_slide_out_top=0x7f040009;
}
public static final class array {
public static int material_colors=0x7f0a0000;
}
public static final class attr {
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarDivider=0x7f010083;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarItemBackground=0x7f010084;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarPopupTheme=0x7f01007d;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
*/
public static int actionBarSize=0x7f010082;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarSplitStyle=0x7f01007f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarStyle=0x7f01007e;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarTabBarStyle=0x7f010079;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarTabStyle=0x7f010078;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarTabTextStyle=0x7f01007a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarTheme=0x7f010080;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionBarWidgetTheme=0x7f010081;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionButtonStyle=0x7f01009d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionDropDownStyle=0x7f010099;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionLayout=0x7f010050;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionMenuTextAppearance=0x7f010085;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static int actionMenuTextColor=0x7f010086;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeBackground=0x7f010089;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeCloseButtonStyle=0x7f010088;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeCloseDrawable=0x7f01008b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeCopyDrawable=0x7f01008d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeCutDrawable=0x7f01008c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeFindDrawable=0x7f010091;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModePasteDrawable=0x7f01008e;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModePopupWindowStyle=0x7f010093;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeSelectAllDrawable=0x7f01008f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeShareDrawable=0x7f010090;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeSplitBackground=0x7f01008a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeStyle=0x7f010087;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionModeWebSearchDrawable=0x7f010092;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionOverflowButtonStyle=0x7f01007b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int actionOverflowMenuStyle=0x7f01007c;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int actionProviderClass=0x7f010052;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int actionViewClass=0x7f010051;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int activityChooserViewStyle=0x7f0100a5;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int alertDialogButtonGroupStyle=0x7f0100c6;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int alertDialogCenterButtons=0x7f0100c7;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int alertDialogStyle=0x7f0100c5;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int alertDialogTheme=0x7f0100c8;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int autoCompleteTextViewStyle=0x7f0100cd;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int background=0x7f01000c;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static int backgroundSplit=0x7f01000e;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static int backgroundStacked=0x7f01000d;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int backgroundTint=0x7f0100e6;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>src_over</code></td><td>3</td><td></td></tr>
<tr><td><code>src_in</code></td><td>5</td><td></td></tr>
<tr><td><code>src_atop</code></td><td>9</td><td></td></tr>
<tr><td><code>multiply</code></td><td>14</td><td></td></tr>
<tr><td><code>screen</code></td><td>15</td><td></td></tr>
</table>
*/
public static int backgroundTintMode=0x7f0100e7;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int barSize=0x7f010038;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int borderlessButtonStyle=0x7f0100a2;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonBarButtonStyle=0x7f01009f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonBarNegativeButtonStyle=0x7f0100cb;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonBarNeutralButtonStyle=0x7f0100cc;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonBarPositiveButtonStyle=0x7f0100ca;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonBarStyle=0x7f01009e;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonPanelSideLayout=0x7f01001f;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonStyle=0x7f0100ce;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int buttonStyleSmall=0x7f0100cf;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int checkboxStyle=0x7f0100d0;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int checkedTextViewStyle=0x7f0100d1;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int closeIcon=0x7f01005a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int closeItemLayout=0x7f01001c;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int collapseContentDescription=0x7f0100e0;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int collapseIcon=0x7f0100df;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int color=0x7f010032;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorAccent=0x7f0100bf;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorButtonNormal=0x7f0100c3;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorControlActivated=0x7f0100c1;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorControlHighlight=0x7f0100c2;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorControlNormal=0x7f0100c0;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorPrimary=0x7f0100bd;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorPrimaryDark=0x7f0100be;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int colorSwitchThumbNormal=0x7f0100c4;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int commitIcon=0x7f01005f;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int contentInsetEnd=0x7f010017;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int contentInsetLeft=0x7f010018;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int contentInsetRight=0x7f010019;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int contentInsetStart=0x7f010016;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int customNavigationLayout=0x7f01000f;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int defaultQueryHint=0x7f010059;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int dialogPreferredPadding=0x7f010097;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int dialogTheme=0x7f010096;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int disableChildrenWhenDisabled=0x7f010066;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
*/
public static int displayOptions=0x7f010005;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int divider=0x7f01000b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int dividerHorizontal=0x7f0100a4;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int dividerPadding=0x7f01003c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int dividerVertical=0x7f0100a3;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int drawableSize=0x7f010034;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int drawerArrowStyle=0x7f010000;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int dropDownListViewStyle=0x7f0100b5;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int dropdownListPreferredItemHeight=0x7f01009a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int editTextBackground=0x7f0100ab;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static int editTextColor=0x7f0100aa;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int editTextStyle=0x7f0100d2;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int elevation=0x7f01001a;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int expandActivityOverflowButtonDrawable=0x7f01001e;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int gapBetweenBars=0x7f010035;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int goIcon=0x7f01005b;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int height=0x7f010001;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int hideOnContentScroll=0x7f010015;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int homeAsUpIndicator=0x7f01009c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int homeLayout=0x7f010010;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int icon=0x7f010009;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int iconifiedByDefault=0x7f010057;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int indeterminateProgressStyle=0x7f010012;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int initialActivityCount=0x7f01001d;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int isLightTheme=0x7f010002;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int isLoadMore=0x7f01004e;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int itemPadding=0x7f010014;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int layout=0x7f010056;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int listChoiceBackgroundIndicator=0x7f0100bc;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int listDividerAlertDialog=0x7f010098;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int listItemLayout=0x7f010023;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int listLayout=0x7f010020;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int listPopupWindowStyle=0x7f0100b6;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int listPreferredItemHeight=0x7f0100b0;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int listPreferredItemHeightLarge=0x7f0100b2;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int listPreferredItemHeightSmall=0x7f0100b1;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int listPreferredItemPaddingLeft=0x7f0100b3;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int listPreferredItemPaddingRight=0x7f0100b4;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int logo=0x7f01000a;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int maxButtonHeight=0x7f0100de;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int measureWithLargestChild=0x7f01003a;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int middleBarArrowSize=0x7f010037;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_arrow_height=0x7f01002c;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_arrow_width=0x7f01002b;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_background_color=0x7f010026;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_enable_circle_background=0x7f01002a;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_inner_radius=0x7f010025;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_max=0x7f01002e;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_progress=0x7f01002d;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_progress_color=0x7f010027;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_progress_stoke_width=0x7f010028;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_progress_text_color=0x7f010030;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_progress_text_size=0x7f01002f;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>visible</code></td><td>0</td><td></td></tr>
<tr><td><code>invisible</code></td><td>1</td><td></td></tr>
</table>
*/
public static int mlpb_progress_text_visibility=0x7f010031;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int mlpb_show_arrow=0x7f010029;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int multiChoiceItemLayout=0x7f010021;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int navigationContentDescription=0x7f0100e2;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int navigationIcon=0x7f0100e1;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td></td></tr>
<tr><td><code>listMode</code></td><td>1</td><td></td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td></td></tr>
</table>
*/
public static int navigationMode=0x7f010004;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int overlapAnchor=0x7f010054;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int overlay=0x7f01003d;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int paddingEnd=0x7f0100e4;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int paddingStart=0x7f0100e3;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int panelBackground=0x7f0100b9;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int panelMenuListTheme=0x7f0100bb;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int panelMenuListWidth=0x7f0100ba;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int popupMenuStyle=0x7f0100a8;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int popupPromptView=0x7f010065;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int popupTheme=0x7f01001b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int popupWindowStyle=0x7f0100a9;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int preserveIconSpacing=0x7f010053;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progressBarPadding=0x7f010013;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int progressBarStyle=0x7f010011;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progress_arrow_height=0x7f010046;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progress_arrow_width=0x7f010045;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progress_backgroud_color=0x7f010043;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int progress_colors=0x7f010041;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progress_max_value=0x7f010049;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progress_show_arrow=0x7f010044;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progress_show_circle_backgroud=0x7f010047;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td></td></tr>
<tr><td><code>big</code></td><td>1</td><td></td></tr>
</table>
*/
public static int progress_size_type=0x7f01004d;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progress_stoke_width=0x7f010042;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progress_text_color=0x7f01004b;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progress_text_size=0x7f01004a;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>visible</code></td><td>0</td><td></td></tr>
<tr><td><code>invisible</code></td><td>1</td><td></td></tr>
</table>
*/
public static int progress_text_visibility=0x7f01004c;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int progress_value=0x7f010048;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int prompt=0x7f010063;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int queryBackground=0x7f010061;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int queryHint=0x7f010058;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int radioButtonStyle=0x7f0100d3;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int ratingBarStyle=0x7f0100d4;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int searchHintIcon=0x7f01005d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int searchIcon=0x7f01005c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int searchViewStyle=0x7f0100af;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int selectableItemBackground=0x7f0100a0;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int selectableItemBackgroundBorderless=0x7f0100a1;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td></td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td></td></tr>
<tr><td><code>always</code></td><td>2</td><td></td></tr>
<tr><td><code>withText</code></td><td>4</td><td></td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td></td></tr>
</table>
*/
public static int showAsAction=0x7f01004f;
/** <p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
*/
public static int showDividers=0x7f01003b;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int showText=0x7f01006d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int singleChoiceItemLayout=0x7f010022;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int spinBars=0x7f010033;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int spinnerDropDownItemStyle=0x7f01009b;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td></td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td></td></tr>
</table>
*/
public static int spinnerMode=0x7f010064;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int spinnerStyle=0x7f0100d5;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int splitTrack=0x7f01006c;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int state_above_anchor=0x7f010055;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int submitBackground=0x7f010062;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int subtitle=0x7f010006;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int subtitleTextAppearance=0x7f0100d8;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int subtitleTextStyle=0x7f010008;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int suggestionRowLayout=0x7f010060;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int switchMinWidth=0x7f01006a;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int switchPadding=0x7f01006b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int switchStyle=0x7f0100d6;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int switchTextAppearance=0x7f010069;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
*/
public static int textAllCaps=0x7f010024;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceLargePopupMenu=0x7f010094;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceListItem=0x7f0100b7;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceListItemSmall=0x7f0100b8;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceSearchResultSubtitle=0x7f0100ad;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceSearchResultTitle=0x7f0100ac;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int textAppearanceSmallPopupMenu=0x7f010095;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static int textColorAlertDialogListItem=0x7f0100c9;
/** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static int textColorSearchUrl=0x7f0100ae;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int theme=0x7f0100e5;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int thickness=0x7f010039;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int thumbTextPadding=0x7f010068;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int title=0x7f010003;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int titleMarginBottom=0x7f0100dd;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int titleMarginEnd=0x7f0100db;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int titleMarginStart=0x7f0100da;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int titleMarginTop=0x7f0100dc;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int titleMargins=0x7f0100d9;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int titleTextAppearance=0x7f0100d7;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int titleTextStyle=0x7f010007;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int toolbarNavigationButtonStyle=0x7f0100a7;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int toolbarStyle=0x7f0100a6;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int topBottomBarArrowSize=0x7f010036;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int track=0x7f010067;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static int voiceIcon=0x7f01005e;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int wave_color=0x7f01003f;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td></td></tr>
<tr><td><code>higher</code></td><td>1</td><td></td></tr>
</table>
*/
public static int wave_height_type=0x7f01003e;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int wave_show=0x7f010040;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int windowActionBar=0x7f01006e;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int windowActionBarOverlay=0x7f010070;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int windowActionModeOverlay=0x7f010071;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int windowFixedHeightMajor=0x7f010075;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int windowFixedHeightMinor=0x7f010073;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int windowFixedWidthMajor=0x7f010072;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int windowFixedWidthMinor=0x7f010074;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int windowMinWidthMajor=0x7f010076;
/** <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int windowMinWidthMinor=0x7f010077;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static int windowNoTitle=0x7f01006f;
}
public static final class bool {
public static int abc_action_bar_embed_tabs=0x7f080002;
public static int abc_action_bar_embed_tabs_pre_jb=0x7f080000;
public static int abc_action_bar_expanded_action_views_exclusive=0x7f080003;
public static int abc_config_actionMenuItemAllCaps=0x7f080004;
public static int abc_config_allowActionMenuItemTextWithIcon=0x7f080001;
public static int abc_config_closeDialogWhenTouchOutside=0x7f080005;
public static int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f080006;
}
public static final class color {
public static int abc_background_cache_hint_selector_material_dark=0x7f0b0039;
public static int abc_background_cache_hint_selector_material_light=0x7f0b003a;
public static int abc_input_method_navigation_guard=0x7f0b0000;
public static int abc_primary_text_disable_only_material_dark=0x7f0b003b;
public static int abc_primary_text_disable_only_material_light=0x7f0b003c;
public static int abc_primary_text_material_dark=0x7f0b003d;
public static int abc_primary_text_material_light=0x7f0b003e;
public static int abc_search_url_text=0x7f0b003f;
public static int abc_search_url_text_normal=0x7f0b0001;
public static int abc_search_url_text_pressed=0x7f0b0002;
public static int abc_search_url_text_selected=0x7f0b0003;
public static int abc_secondary_text_material_dark=0x7f0b0040;
public static int abc_secondary_text_material_light=0x7f0b0041;
public static int accent_material_dark=0x7f0b0004;
public static int accent_material_light=0x7f0b0005;
public static int background_floating_material_dark=0x7f0b0006;
public static int background_floating_material_light=0x7f0b0007;
public static int background_material_dark=0x7f0b0008;
public static int background_material_light=0x7f0b0009;
public static int bright_foreground_disabled_material_dark=0x7f0b000a;
public static int bright_foreground_disabled_material_light=0x7f0b000b;
public static int bright_foreground_inverse_material_dark=0x7f0b000c;
public static int bright_foreground_inverse_material_light=0x7f0b000d;
public static int bright_foreground_material_dark=0x7f0b000e;
public static int bright_foreground_material_light=0x7f0b000f;
public static int button_material_dark=0x7f0b0010;
public static int button_material_light=0x7f0b0011;
public static int dim_foreground_disabled_material_dark=0x7f0b0012;
public static int dim_foreground_disabled_material_light=0x7f0b0013;
public static int dim_foreground_material_dark=0x7f0b0014;
public static int dim_foreground_material_light=0x7f0b0015;
public static int highlighted_text_material_dark=0x7f0b0016;
public static int highlighted_text_material_light=0x7f0b0017;
public static int hint_foreground_material_dark=0x7f0b0018;
public static int hint_foreground_material_light=0x7f0b0019;
public static int link_text_material_dark=0x7f0b001a;
public static int link_text_material_light=0x7f0b001b;
public static int material_blue=0x7f0b001c;
public static int material_blue_dark=0x7f0b001d;
public static int material_blue_grey_800=0x7f0b001e;
public static int material_blue_grey_900=0x7f0b001f;
public static int material_blue_grey_950=0x7f0b0020;
public static int material_blue_light=0x7f0b0021;
public static int material_deep_teal_200=0x7f0b0022;
public static int material_deep_teal_500=0x7f0b0023;
public static int material_green=0x7f0b0024;
public static int material_red=0x7f0b0025;
public static int material_yellow=0x7f0b0026;
public static int primary_dark_material_dark=0x7f0b0027;
public static int primary_dark_material_light=0x7f0b0028;
public static int primary_material_dark=0x7f0b0029;
public static int primary_material_light=0x7f0b002a;
public static int primary_text_default_material_dark=0x7f0b002b;
public static int primary_text_default_material_light=0x7f0b002c;
public static int primary_text_disabled_material_dark=0x7f0b002d;
public static int primary_text_disabled_material_light=0x7f0b002e;
public static int ripple_material_dark=0x7f0b002f;
public static int ripple_material_light=0x7f0b0030;
public static int secondary_text_default_material_dark=0x7f0b0031;
public static int secondary_text_default_material_light=0x7f0b0032;
public static int secondary_text_disabled_material_dark=0x7f0b0033;
public static int secondary_text_disabled_material_light=0x7f0b0034;
public static int switch_thumb_disabled_material_dark=0x7f0b0035;
public static int switch_thumb_disabled_material_light=0x7f0b0036;
public static int switch_thumb_material_dark=0x7f0b0042;
public static int switch_thumb_material_light=0x7f0b0043;
public static int switch_thumb_normal_material_dark=0x7f0b0037;
public static int switch_thumb_normal_material_light=0x7f0b0038;
}
public static final class dimen {
public static int abc_action_bar_content_inset_material=0x7f06000c;
public static int abc_action_bar_default_height_material=0x7f060001;
public static int abc_action_bar_default_padding_material=0x7f060002;
public static int abc_action_bar_icon_vertical_padding_material=0x7f060010;
public static int abc_action_bar_navigation_padding_start_material=0x7f06000d;
public static int abc_action_bar_overflow_padding_end_material=0x7f06000e;
public static int abc_action_bar_overflow_padding_start_material=0x7f060011;
public static int abc_action_bar_progress_bar_size=0x7f060003;
public static int abc_action_bar_stacked_max_height=0x7f060012;
public static int abc_action_bar_stacked_tab_max_width=0x7f060013;
public static int abc_action_bar_subtitle_bottom_margin_material=0x7f060014;
public static int abc_action_bar_subtitle_top_margin_material=0x7f060015;
public static int abc_action_button_min_height_material=0x7f060016;
public static int abc_action_button_min_width_material=0x7f060017;
public static int abc_action_button_min_width_overflow_material=0x7f060018;
public static int abc_alert_dialog_button_bar_height=0x7f060000;
public static int abc_button_inset_horizontal_material=0x7f060019;
public static int abc_button_inset_vertical_material=0x7f06001a;
public static int abc_button_padding_horizontal_material=0x7f06001b;
public static int abc_button_padding_vertical_material=0x7f06001c;
public static int abc_config_prefDialogWidth=0x7f060006;
public static int abc_control_corner_material=0x7f06001d;
public static int abc_control_inset_material=0x7f06001e;
public static int abc_control_padding_material=0x7f06001f;
public static int abc_dialog_list_padding_vertical_material=0x7f060020;
public static int abc_dialog_min_width_major=0x7f060021;
public static int abc_dialog_min_width_minor=0x7f060022;
public static int abc_dialog_padding_material=0x7f060023;
public static int abc_dialog_padding_top_material=0x7f060024;
public static int abc_disabled_alpha_material_dark=0x7f060025;
public static int abc_disabled_alpha_material_light=0x7f060026;
public static int abc_dropdownitem_icon_width=0x7f060027;
public static int abc_dropdownitem_text_padding_left=0x7f060028;
public static int abc_dropdownitem_text_padding_right=0x7f060029;
public static int abc_edit_text_inset_bottom_material=0x7f06002a;
public static int abc_edit_text_inset_horizontal_material=0x7f06002b;
public static int abc_edit_text_inset_top_material=0x7f06002c;
public static int abc_floating_window_z=0x7f06002d;
public static int abc_list_item_padding_horizontal_material=0x7f06002e;
public static int abc_panel_menu_list_width=0x7f06002f;
public static int abc_search_view_preferred_width=0x7f060030;
public static int abc_search_view_text_min_width=0x7f060007;
public static int abc_switch_padding=0x7f06000f;
public static int abc_text_size_body_1_material=0x7f060031;
public static int abc_text_size_body_2_material=0x7f060032;
public static int abc_text_size_button_material=0x7f060033;
public static int abc_text_size_caption_material=0x7f060034;
public static int abc_text_size_display_1_material=0x7f060035;
public static int abc_text_size_display_2_material=0x7f060036;
public static int abc_text_size_display_3_material=0x7f060037;
public static int abc_text_size_display_4_material=0x7f060038;
public static int abc_text_size_headline_material=0x7f060039;
public static int abc_text_size_large_material=0x7f06003a;
public static int abc_text_size_medium_material=0x7f06003b;
public static int abc_text_size_menu_material=0x7f06003c;
public static int abc_text_size_small_material=0x7f06003d;
public static int abc_text_size_subhead_material=0x7f06003e;
public static int abc_text_size_subtitle_material_toolbar=0x7f060004;
public static int abc_text_size_title_material=0x7f06003f;
public static int abc_text_size_title_material_toolbar=0x7f060005;
public static int dialog_fixed_height_major=0x7f060008;
public static int dialog_fixed_height_minor=0x7f060009;
public static int dialog_fixed_width_major=0x7f06000a;
public static int dialog_fixed_width_minor=0x7f06000b;
public static int disabled_alpha_material_dark=0x7f060040;
public static int disabled_alpha_material_light=0x7f060041;
public static int notification_large_icon_height=0x7f060042;
public static int notification_large_icon_width=0x7f060043;
public static int notification_subtext_size=0x7f060044;
}
public static final class drawable {
public static int abc_ab_share_pack_mtrl_alpha=0x7f020000;
public static int abc_btn_borderless_material=0x7f020001;
public static int abc_btn_check_material=0x7f020002;
public static int abc_btn_check_to_on_mtrl_000=0x7f020003;
public static int abc_btn_check_to_on_mtrl_015=0x7f020004;
public static int abc_btn_default_mtrl_shape=0x7f020005;
public static int abc_btn_radio_material=0x7f020006;
public static int abc_btn_radio_to_on_mtrl_000=0x7f020007;
public static int abc_btn_radio_to_on_mtrl_015=0x7f020008;
public static int abc_btn_rating_star_off_mtrl_alpha=0x7f020009;
public static int abc_btn_rating_star_on_mtrl_alpha=0x7f02000a;
public static int abc_btn_switch_to_on_mtrl_00001=0x7f02000b;
public static int abc_btn_switch_to_on_mtrl_00012=0x7f02000c;
public static int abc_cab_background_internal_bg=0x7f02000d;
public static int abc_cab_background_top_material=0x7f02000e;
public static int abc_cab_background_top_mtrl_alpha=0x7f02000f;
public static int abc_dialog_material_background_dark=0x7f020010;
public static int abc_dialog_material_background_light=0x7f020011;
public static int abc_edit_text_material=0x7f020012;
public static int abc_ic_ab_back_mtrl_am_alpha=0x7f020013;
public static int abc_ic_clear_mtrl_alpha=0x7f020014;
public static int abc_ic_commit_search_api_mtrl_alpha=0x7f020015;
public static int abc_ic_go_search_api_mtrl_alpha=0x7f020016;
public static int abc_ic_menu_copy_mtrl_am_alpha=0x7f020017;
public static int abc_ic_menu_cut_mtrl_alpha=0x7f020018;
public static int abc_ic_menu_moreoverflow_mtrl_alpha=0x7f020019;
public static int abc_ic_menu_paste_mtrl_am_alpha=0x7f02001a;
public static int abc_ic_menu_selectall_mtrl_alpha=0x7f02001b;
public static int abc_ic_menu_share_mtrl_alpha=0x7f02001c;
public static int abc_ic_search_api_mtrl_alpha=0x7f02001d;
public static int abc_ic_voice_search_api_mtrl_alpha=0x7f02001e;
public static int abc_item_background_holo_dark=0x7f02001f;
public static int abc_item_background_holo_light=0x7f020020;
public static int abc_list_divider_mtrl_alpha=0x7f020021;
public static int abc_list_focused_holo=0x7f020022;
public static int abc_list_longpressed_holo=0x7f020023;
public static int abc_list_pressed_holo_dark=0x7f020024;
public static int abc_list_pressed_holo_light=0x7f020025;
public static int abc_list_selector_background_transition_holo_dark=0x7f020026;
public static int abc_list_selector_background_transition_holo_light=0x7f020027;
public static int abc_list_selector_disabled_holo_dark=0x7f020028;
public static int abc_list_selector_disabled_holo_light=0x7f020029;
public static int abc_list_selector_holo_dark=0x7f02002a;
public static int abc_list_selector_holo_light=0x7f02002b;
public static int abc_menu_hardkey_panel_mtrl_mult=0x7f02002c;
public static int abc_popup_background_mtrl_mult=0x7f02002d;
public static int abc_ratingbar_full_material=0x7f02002e;
public static int abc_spinner_mtrl_am_alpha=0x7f02002f;
public static int abc_spinner_textfield_background_material=0x7f020030;
public static int abc_switch_thumb_material=0x7f020031;
public static int abc_switch_track_mtrl_alpha=0x7f020032;
public static int abc_tab_indicator_material=0x7f020033;
public static int abc_tab_indicator_mtrl_alpha=0x7f020034;
public static int abc_text_cursor_mtrl_alpha=0x7f020035;
public static int abc_textfield_activated_mtrl_alpha=0x7f020036;
public static int abc_textfield_default_mtrl_alpha=0x7f020037;
public static int abc_textfield_search_activated_mtrl_alpha=0x7f020038;
public static int abc_textfield_search_default_mtrl_alpha=0x7f020039;
public static int abc_textfield_search_material=0x7f02003a;
public static int notification_template_icon_bg=0x7f02003b;
}
public static final class id {
public static int action0=0x7f0c0053;
public static int action_bar=0x7f0c0044;
public static int action_bar_activity_content=0x7f0c0000;
public static int action_bar_container=0x7f0c0043;
public static int action_bar_root=0x7f0c003f;
public static int action_bar_spinner=0x7f0c0001;
public static int action_bar_subtitle=0x7f0c0028;
public static int action_bar_title=0x7f0c0027;
public static int action_context_bar=0x7f0c0045;
public static int action_divider=0x7f0c0057;
public static int action_menu_divider=0x7f0c0002;
public static int action_menu_presenter=0x7f0c0003;
public static int action_mode_bar=0x7f0c0041;
public static int action_mode_bar_stub=0x7f0c0040;
public static int action_mode_close_button=0x7f0c0029;
public static int activity_chooser_view_content=0x7f0c002a;
public static int alertTitle=0x7f0c0034;
public static int always=0x7f0c001a;
public static int beginning=0x7f0c0015;
public static int big=0x7f0c0019;
public static int buttonPanel=0x7f0c003a;
public static int cancel_action=0x7f0c0054;
public static int checkbox=0x7f0c003c;
public static int chronometer=0x7f0c005a;
public static int collapseActionView=0x7f0c001b;
public static int contentPanel=0x7f0c0035;
public static int custom=0x7f0c0039;
public static int customPanel=0x7f0c0038;
public static int decor_content_parent=0x7f0c0042;
public static int default_activity_button=0x7f0c002d;
public static int dialog=0x7f0c001f;
public static int disableHome=0x7f0c000c;
public static int dropdown=0x7f0c0020;
public static int edit_query=0x7f0c0046;
public static int end=0x7f0c0016;
public static int end_padder=0x7f0c005f;
public static int expand_activities_button=0x7f0c002b;
public static int expanded_menu=0x7f0c003b;
public static int higher=0x7f0c0018;
public static int home=0x7f0c0004;
public static int homeAsUp=0x7f0c000d;
public static int icon=0x7f0c002f;
public static int ifRoom=0x7f0c001c;
public static int image=0x7f0c002c;
public static int info=0x7f0c005e;
public static int invisible=0x7f0c0013;
public static int line1=0x7f0c0058;
public static int line3=0x7f0c005c;
public static int listMode=0x7f0c0009;
public static int list_item=0x7f0c002e;
public static int media_actions=0x7f0c0056;
public static int middle=0x7f0c0017;
public static int multiply=0x7f0c0022;
public static int never=0x7f0c001d;
public static int none=0x7f0c000e;
public static int normal=0x7f0c000a;
public static int parentPanel=0x7f0c0031;
public static int progress_circular=0x7f0c0005;
public static int progress_horizontal=0x7f0c0006;
public static int radio=0x7f0c003e;
public static int screen=0x7f0c0023;
public static int scrollView=0x7f0c0036;
public static int search_badge=0x7f0c0048;
public static int search_bar=0x7f0c0047;
public static int search_button=0x7f0c0049;
public static int search_close_btn=0x7f0c004e;
public static int search_edit_frame=0x7f0c004a;
public static int search_go_btn=0x7f0c0050;
public static int search_mag_icon=0x7f0c004b;
public static int search_plate=0x7f0c004c;
public static int search_src_text=0x7f0c004d;
public static int search_voice_btn=0x7f0c0051;
public static int select_dialog_listview=0x7f0c0052;
public static int shortcut=0x7f0c003d;
public static int showCustom=0x7f0c000f;
public static int showHome=0x7f0c0010;
public static int showTitle=0x7f0c0011;
public static int split_action_bar=0x7f0c0007;
public static int src_atop=0x7f0c0024;
public static int src_in=0x7f0c0025;
public static int src_over=0x7f0c0026;
public static int status_bar_latest_event_content=0x7f0c0055;
public static int submit_area=0x7f0c004f;
public static int tabMode=0x7f0c000b;
public static int text=0x7f0c005d;
public static int text2=0x7f0c005b;
public static int textSpacerNoButtons=0x7f0c0037;
public static int time=0x7f0c0059;
public static int title=0x7f0c0030;
public static int title_template=0x7f0c0033;
public static int topPanel=0x7f0c0032;
public static int up=0x7f0c0008;
public static int useLogo=0x7f0c0012;
public static int visible=0x7f0c0014;
public static int withText=0x7f0c001e;
public static int wrap_content=0x7f0c0021;
}
public static final class integer {
public static int abc_config_activityDefaultDur=0x7f090001;
public static int abc_config_activityShortDur=0x7f090002;
public static int abc_max_action_buttons=0x7f090000;
public static int cancel_button_image_alpha=0x7f090003;
public static int status_bar_notification_info_maxnum=0x7f090004;
}
public static final class layout {
public static int abc_action_bar_title_item=0x7f030000;
public static int abc_action_bar_up_container=0x7f030001;
public static int abc_action_bar_view_list_nav_layout=0x7f030002;
public static int abc_action_menu_item_layout=0x7f030003;
public static int abc_action_menu_layout=0x7f030004;
public static int abc_action_mode_bar=0x7f030005;
public static int abc_action_mode_close_item_material=0x7f030006;
public static int abc_activity_chooser_view=0x7f030007;
public static int abc_activity_chooser_view_list_item=0x7f030008;
public static int abc_alert_dialog_material=0x7f030009;
public static int abc_dialog_title_material=0x7f03000a;
public static int abc_expanded_menu_layout=0x7f03000b;
public static int abc_list_menu_item_checkbox=0x7f03000c;
public static int abc_list_menu_item_icon=0x7f03000d;
public static int abc_list_menu_item_layout=0x7f03000e;
public static int abc_list_menu_item_radio=0x7f03000f;
public static int abc_popup_menu_item_layout=0x7f030010;
public static int abc_screen_content_include=0x7f030011;
public static int abc_screen_simple=0x7f030012;
public static int abc_screen_simple_overlay_action_mode=0x7f030013;
public static int abc_screen_toolbar=0x7f030014;
public static int abc_search_dropdown_item_icons_2line=0x7f030015;
public static int abc_search_view=0x7f030016;
public static int abc_select_dialog_material=0x7f030017;
public static int abc_simple_dropdown_hint=0x7f030018;
public static int notification_media_action=0x7f030019;
public static int notification_media_cancel_action=0x7f03001a;
public static int notification_template_big_media=0x7f03001b;
public static int notification_template_big_media_narrow=0x7f03001c;
public static int notification_template_lines=0x7f03001d;
public static int notification_template_media=0x7f03001e;
public static int notification_template_part_chronometer=0x7f03001f;
public static int notification_template_part_time=0x7f030020;
public static int select_dialog_item_material=0x7f030021;
public static int select_dialog_multichoice_material=0x7f030022;
public static int select_dialog_singlechoice_material=0x7f030023;
public static int support_simple_spinner_dropdown_item=0x7f030024;
}
public static final class string {
public static int abc_action_bar_home_description=0x7f050000;
public static int abc_action_bar_home_description_format=0x7f05000d;
public static int abc_action_bar_home_subtitle_description_format=0x7f05000e;
public static int abc_action_bar_up_description=0x7f050001;
public static int abc_action_menu_overflow_description=0x7f050002;
public static int abc_action_mode_done=0x7f050003;
public static int abc_activity_chooser_view_see_all=0x7f050004;
public static int abc_activitychooserview_choose_application=0x7f050005;
public static int abc_search_hint=0x7f05000f;
public static int abc_searchview_description_clear=0x7f050006;
public static int abc_searchview_description_query=0x7f050007;
public static int abc_searchview_description_search=0x7f050008;
public static int abc_searchview_description_submit=0x7f050009;
public static int abc_searchview_description_voice=0x7f05000a;
public static int abc_shareactionprovider_share_with=0x7f05000b;
public static int abc_shareactionprovider_share_with_application=0x7f05000c;
public static int abc_toolbar_collapse_description=0x7f050010;
public static int app_name=0x7f050011;
public static int status_bar_notification_info_overflow=0x7f050012;
}
public static final class style {
public static int AlertDialog_AppCompat=0x7f070073;
public static int AlertDialog_AppCompat_Light=0x7f070074;
public static int Animation_AppCompat_Dialog=0x7f070075;
public static int Animation_AppCompat_DropDownUp=0x7f070076;
public static int Base_AlertDialog_AppCompat=0x7f070077;
public static int Base_AlertDialog_AppCompat_Light=0x7f070078;
public static int Base_Animation_AppCompat_Dialog=0x7f070079;
public static int Base_Animation_AppCompat_DropDownUp=0x7f07007a;
public static int Base_DialogWindowTitle_AppCompat=0x7f07007b;
public static int Base_DialogWindowTitleBackground_AppCompat=0x7f07007c;
public static int Base_TextAppearance_AppCompat=0x7f07002e;
public static int Base_TextAppearance_AppCompat_Body1=0x7f07002f;
public static int Base_TextAppearance_AppCompat_Body2=0x7f070030;
public static int Base_TextAppearance_AppCompat_Button=0x7f070018;
public static int Base_TextAppearance_AppCompat_Caption=0x7f070031;
public static int Base_TextAppearance_AppCompat_Display1=0x7f070032;
public static int Base_TextAppearance_AppCompat_Display2=0x7f070033;
public static int Base_TextAppearance_AppCompat_Display3=0x7f070034;
public static int Base_TextAppearance_AppCompat_Display4=0x7f070035;
public static int Base_TextAppearance_AppCompat_Headline=0x7f070036;
public static int Base_TextAppearance_AppCompat_Inverse=0x7f070003;
public static int Base_TextAppearance_AppCompat_Large=0x7f070037;
public static int Base_TextAppearance_AppCompat_Large_Inverse=0x7f070004;
public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f070038;
public static int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f070039;
public static int Base_TextAppearance_AppCompat_Medium=0x7f07003a;
public static int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f070005;
public static int Base_TextAppearance_AppCompat_Menu=0x7f07003b;
public static int Base_TextAppearance_AppCompat_SearchResult=0x7f07007d;
public static int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f07003c;
public static int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f07003d;
public static int Base_TextAppearance_AppCompat_Small=0x7f07003e;
public static int Base_TextAppearance_AppCompat_Small_Inverse=0x7f070006;
public static int Base_TextAppearance_AppCompat_Subhead=0x7f07003f;
public static int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f070007;
public static int Base_TextAppearance_AppCompat_Title=0x7f070040;
public static int Base_TextAppearance_AppCompat_Title_Inverse=0x7f070008;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f070041;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f070042;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f070043;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f070044;
public static int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f070045;
public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f070046;
public static int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f070047;
public static int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f07007e;
public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f070048;
public static int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f070049;
public static int Base_TextAppearance_AppCompat_Widget_Switch=0x7f07004a;
public static int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f07004b;
public static int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f07007f;
public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f07004c;
public static int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f07004d;
public static int Base_Theme_AppCompat=0x7f07004e;
public static int Base_Theme_AppCompat_CompactMenu=0x7f070080;
public static int Base_Theme_AppCompat_Dialog=0x7f070009;
public static int Base_Theme_AppCompat_Dialog_Alert=0x7f070081;
public static int Base_Theme_AppCompat_Dialog_FixedSize=0x7f070082;
public static int Base_Theme_AppCompat_Dialog_MinWidth=0x7f070083;
public static int Base_Theme_AppCompat_DialogWhenLarge=0x7f070001;
public static int Base_Theme_AppCompat_Light=0x7f07004f;
public static int Base_Theme_AppCompat_Light_DarkActionBar=0x7f070084;
public static int Base_Theme_AppCompat_Light_Dialog=0x7f07000a;
public static int Base_Theme_AppCompat_Light_Dialog_Alert=0x7f070085;
public static int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f070086;
public static int Base_Theme_AppCompat_Light_Dialog_MinWidth=0x7f070087;
public static int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f070002;
public static int Base_ThemeOverlay_AppCompat=0x7f070088;
public static int Base_ThemeOverlay_AppCompat_ActionBar=0x7f070089;
public static int Base_ThemeOverlay_AppCompat_Dark=0x7f07008a;
public static int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f07008b;
public static int Base_ThemeOverlay_AppCompat_Light=0x7f07008c;
public static int Base_V11_Theme_AppCompat_Dialog=0x7f07000b;
public static int Base_V11_Theme_AppCompat_Light_Dialog=0x7f07000c;
public static int Base_V12_Widget_AppCompat_AutoCompleteTextView=0x7f070014;
public static int Base_V12_Widget_AppCompat_EditText=0x7f070015;
public static int Base_V21_Theme_AppCompat=0x7f070050;
public static int Base_V21_Theme_AppCompat_Dialog=0x7f070051;
public static int Base_V21_Theme_AppCompat_Light=0x7f070052;
public static int Base_V21_Theme_AppCompat_Light_Dialog=0x7f070053;
public static int Base_V7_Theme_AppCompat=0x7f07008d;
public static int Base_V7_Theme_AppCompat_Dialog=0x7f07008e;
public static int Base_V7_Theme_AppCompat_Light=0x7f07008f;
public static int Base_V7_Theme_AppCompat_Light_Dialog=0x7f070090;
public static int Base_V7_Widget_AppCompat_AutoCompleteTextView=0x7f070091;
public static int Base_V7_Widget_AppCompat_EditText=0x7f070092;
public static int Base_Widget_AppCompat_ActionBar=0x7f070093;
public static int Base_Widget_AppCompat_ActionBar_Solid=0x7f070094;
public static int Base_Widget_AppCompat_ActionBar_TabBar=0x7f070095;
public static int Base_Widget_AppCompat_ActionBar_TabText=0x7f070054;
public static int Base_Widget_AppCompat_ActionBar_TabView=0x7f070055;
public static int Base_Widget_AppCompat_ActionButton=0x7f070056;
public static int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f070057;
public static int Base_Widget_AppCompat_ActionButton_Overflow=0x7f070058;
public static int Base_Widget_AppCompat_ActionMode=0x7f070096;
public static int Base_Widget_AppCompat_ActivityChooserView=0x7f070097;
public static int Base_Widget_AppCompat_AutoCompleteTextView=0x7f070016;
public static int Base_Widget_AppCompat_Button=0x7f070059;
public static int Base_Widget_AppCompat_Button_Borderless=0x7f07005a;
public static int Base_Widget_AppCompat_Button_Borderless_Colored=0x7f07005b;
public static int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f070098;
public static int Base_Widget_AppCompat_Button_Small=0x7f07005c;
public static int Base_Widget_AppCompat_ButtonBar=0x7f07005d;
public static int Base_Widget_AppCompat_ButtonBar_AlertDialog=0x7f070099;
public static int Base_Widget_AppCompat_CompoundButton_CheckBox=0x7f07005e;
public static int Base_Widget_AppCompat_CompoundButton_RadioButton=0x7f07005f;
public static int Base_Widget_AppCompat_CompoundButton_Switch=0x7f07009a;
public static int Base_Widget_AppCompat_DrawerArrowToggle=0x7f070000;
public static int Base_Widget_AppCompat_DrawerArrowToggle_Common=0x7f07009b;
public static int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f070060;
public static int Base_Widget_AppCompat_EditText=0x7f070017;
public static int Base_Widget_AppCompat_Light_ActionBar=0x7f07009c;
public static int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f07009d;
public static int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f07009e;
public static int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f070061;
public static int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f070062;
public static int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f070063;
public static int Base_Widget_AppCompat_Light_PopupMenu=0x7f070064;
public static int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f070065;
public static int Base_Widget_AppCompat_ListPopupWindow=0x7f070066;
public static int Base_Widget_AppCompat_ListView=0x7f070067;
public static int Base_Widget_AppCompat_ListView_DropDown=0x7f070068;
public static int Base_Widget_AppCompat_ListView_Menu=0x7f070069;
public static int Base_Widget_AppCompat_PopupMenu=0x7f07006a;
public static int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f07006b;
public static int Base_Widget_AppCompat_PopupWindow=0x7f07009f;
public static int Base_Widget_AppCompat_ProgressBar=0x7f07000d;
public static int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f07000e;
public static int Base_Widget_AppCompat_RatingBar=0x7f07006c;
public static int Base_Widget_AppCompat_SearchView=0x7f0700a0;
public static int Base_Widget_AppCompat_SearchView_ActionBar=0x7f0700a1;
public static int Base_Widget_AppCompat_Spinner=0x7f07000f;
public static int Base_Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f07006d;
public static int Base_Widget_AppCompat_Spinner_Underlined=0x7f07006e;
public static int Base_Widget_AppCompat_TextView_SpinnerItem=0x7f07006f;
public static int Base_Widget_AppCompat_Toolbar=0x7f0700a2;
public static int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f070070;
public static int Platform_AppCompat=0x7f070010;
public static int Platform_AppCompat_Light=0x7f070011;
public static int Platform_ThemeOverlay_AppCompat_Dark=0x7f070071;
public static int Platform_ThemeOverlay_AppCompat_Light=0x7f070072;
public static int Platform_V11_AppCompat=0x7f070012;
public static int Platform_V11_AppCompat_Light=0x7f070013;
public static int Platform_V14_AppCompat=0x7f070019;
public static int Platform_V14_AppCompat_Light=0x7f07001a;
public static int RtlOverlay_DialogWindowTitle_AppCompat=0x7f070020;
public static int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f070021;
public static int RtlOverlay_Widget_AppCompat_ActionButton_Overflow=0x7f070022;
public static int RtlOverlay_Widget_AppCompat_DialogTitle_Icon=0x7f070023;
public static int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f070024;
public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f070025;
public static int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f070026;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f070027;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f070028;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f070029;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f07002a;
public static int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f07002b;
public static int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f07002c;
public static int RtlOverlay_Widget_AppCompat_Toolbar_Button_Navigation=0x7f07002d;
public static int TextAppearance_AppCompat=0x7f0700a3;
public static int TextAppearance_AppCompat_Body1=0x7f0700a4;
public static int TextAppearance_AppCompat_Body2=0x7f0700a5;
public static int TextAppearance_AppCompat_Button=0x7f0700a6;
public static int TextAppearance_AppCompat_Caption=0x7f0700a7;
public static int TextAppearance_AppCompat_Display1=0x7f0700a8;
public static int TextAppearance_AppCompat_Display2=0x7f0700a9;
public static int TextAppearance_AppCompat_Display3=0x7f0700aa;
public static int TextAppearance_AppCompat_Display4=0x7f0700ab;
public static int TextAppearance_AppCompat_Headline=0x7f0700ac;
public static int TextAppearance_AppCompat_Inverse=0x7f0700ad;
public static int TextAppearance_AppCompat_Large=0x7f0700ae;
public static int TextAppearance_AppCompat_Large_Inverse=0x7f0700af;
public static int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0700b0;
public static int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0700b1;
public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0700b2;
public static int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0700b3;
public static int TextAppearance_AppCompat_Medium=0x7f0700b4;
public static int TextAppearance_AppCompat_Medium_Inverse=0x7f0700b5;
public static int TextAppearance_AppCompat_Menu=0x7f0700b6;
public static int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0700b7;
public static int TextAppearance_AppCompat_SearchResult_Title=0x7f0700b8;
public static int TextAppearance_AppCompat_Small=0x7f0700b9;
public static int TextAppearance_AppCompat_Small_Inverse=0x7f0700ba;
public static int TextAppearance_AppCompat_Subhead=0x7f0700bb;
public static int TextAppearance_AppCompat_Subhead_Inverse=0x7f0700bc;
public static int TextAppearance_AppCompat_Title=0x7f0700bd;
public static int TextAppearance_AppCompat_Title_Inverse=0x7f0700be;
public static int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0700bf;
public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0700c0;
public static int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0700c1;
public static int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0700c2;
public static int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0700c3;
public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0700c4;
public static int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0700c5;
public static int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0700c6;
public static int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0700c7;
public static int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0700c8;
public static int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0700c9;
public static int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0700ca;
public static int TextAppearance_AppCompat_Widget_Switch=0x7f0700cb;
public static int TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0700cc;
public static int TextAppearance_StatusBar_EventContent=0x7f07001b;
public static int TextAppearance_StatusBar_EventContent_Info=0x7f07001c;
public static int TextAppearance_StatusBar_EventContent_Line2=0x7f07001d;
public static int TextAppearance_StatusBar_EventContent_Time=0x7f07001e;
public static int TextAppearance_StatusBar_EventContent_Title=0x7f07001f;
public static int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0700cd;
public static int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0700ce;
public static int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0700cf;
public static int Theme_AppCompat=0x7f0700d0;
public static int Theme_AppCompat_CompactMenu=0x7f0700d1;
public static int Theme_AppCompat_Dialog=0x7f0700d2;
public static int Theme_AppCompat_Dialog_Alert=0x7f0700d3;
public static int Theme_AppCompat_Dialog_MinWidth=0x7f0700d4;
public static int Theme_AppCompat_DialogWhenLarge=0x7f0700d5;
public static int Theme_AppCompat_Light=0x7f0700d6;
public static int Theme_AppCompat_Light_DarkActionBar=0x7f0700d7;
public static int Theme_AppCompat_Light_Dialog=0x7f0700d8;
public static int Theme_AppCompat_Light_Dialog_Alert=0x7f0700d9;
public static int Theme_AppCompat_Light_Dialog_MinWidth=0x7f0700da;
public static int Theme_AppCompat_Light_DialogWhenLarge=0x7f0700db;
public static int Theme_AppCompat_Light_NoActionBar=0x7f0700dc;
public static int Theme_AppCompat_NoActionBar=0x7f0700dd;
public static int ThemeOverlay_AppCompat=0x7f0700de;
public static int ThemeOverlay_AppCompat_ActionBar=0x7f0700df;
public static int ThemeOverlay_AppCompat_Dark=0x7f0700e0;
public static int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0700e1;
public static int ThemeOverlay_AppCompat_Light=0x7f0700e2;
public static int Widget_AppCompat_ActionBar=0x7f0700e3;
public static int Widget_AppCompat_ActionBar_Solid=0x7f0700e4;
public static int Widget_AppCompat_ActionBar_TabBar=0x7f0700e5;
public static int Widget_AppCompat_ActionBar_TabText=0x7f0700e6;
public static int Widget_AppCompat_ActionBar_TabView=0x7f0700e7;
public static int Widget_AppCompat_ActionButton=0x7f0700e8;
public static int Widget_AppCompat_ActionButton_CloseMode=0x7f0700e9;
public static int Widget_AppCompat_ActionButton_Overflow=0x7f0700ea;
public static int Widget_AppCompat_ActionMode=0x7f0700eb;
public static int Widget_AppCompat_ActivityChooserView=0x7f0700ec;
public static int Widget_AppCompat_AutoCompleteTextView=0x7f0700ed;
public static int Widget_AppCompat_Button=0x7f0700ee;
public static int Widget_AppCompat_Button_Borderless=0x7f0700ef;
public static int Widget_AppCompat_Button_Borderless_Colored=0x7f0700f0;
public static int Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0700f1;
public static int Widget_AppCompat_Button_Small=0x7f0700f2;
public static int Widget_AppCompat_ButtonBar=0x7f0700f3;
public static int Widget_AppCompat_ButtonBar_AlertDialog=0x7f0700f4;
public static int Widget_AppCompat_CompoundButton_CheckBox=0x7f0700f5;
public static int Widget_AppCompat_CompoundButton_RadioButton=0x7f0700f6;
public static int Widget_AppCompat_CompoundButton_Switch=0x7f0700f7;
public static int Widget_AppCompat_DrawerArrowToggle=0x7f0700f8;
public static int Widget_AppCompat_DropDownItem_Spinner=0x7f0700f9;
public static int Widget_AppCompat_EditText=0x7f0700fa;
public static int Widget_AppCompat_Light_ActionBar=0x7f0700fb;
public static int Widget_AppCompat_Light_ActionBar_Solid=0x7f0700fc;
public static int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0700fd;
public static int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0700fe;
public static int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0700ff;
public static int Widget_AppCompat_Light_ActionBar_TabText=0x7f070100;
public static int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f070101;
public static int Widget_AppCompat_Light_ActionBar_TabView=0x7f070102;
public static int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f070103;
public static int Widget_AppCompat_Light_ActionButton=0x7f070104;
public static int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f070105;
public static int Widget_AppCompat_Light_ActionButton_Overflow=0x7f070106;
public static int Widget_AppCompat_Light_ActionMode_Inverse=0x7f070107;
public static int Widget_AppCompat_Light_ActivityChooserView=0x7f070108;
public static int Widget_AppCompat_Light_AutoCompleteTextView=0x7f070109;
public static int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f07010a;
public static int Widget_AppCompat_Light_ListPopupWindow=0x7f07010b;
public static int Widget_AppCompat_Light_ListView_DropDown=0x7f07010c;
public static int Widget_AppCompat_Light_PopupMenu=0x7f07010d;
public static int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f07010e;
public static int Widget_AppCompat_Light_SearchView=0x7f07010f;
public static int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f070110;
public static int Widget_AppCompat_ListPopupWindow=0x7f070111;
public static int Widget_AppCompat_ListView=0x7f070112;
public static int Widget_AppCompat_ListView_DropDown=0x7f070113;
public static int Widget_AppCompat_ListView_Menu=0x7f070114;
public static int Widget_AppCompat_PopupMenu=0x7f070115;
public static int Widget_AppCompat_PopupMenu_Overflow=0x7f070116;
public static int Widget_AppCompat_PopupWindow=0x7f070117;
public static int Widget_AppCompat_ProgressBar=0x7f070118;
public static int Widget_AppCompat_ProgressBar_Horizontal=0x7f070119;
public static int Widget_AppCompat_RatingBar=0x7f07011a;
public static int Widget_AppCompat_SearchView=0x7f07011b;
public static int Widget_AppCompat_SearchView_ActionBar=0x7f07011c;
public static int Widget_AppCompat_Spinner=0x7f07011d;
public static int Widget_AppCompat_Spinner_DropDown=0x7f07011e;
public static int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f07011f;
public static int Widget_AppCompat_Spinner_Underlined=0x7f070120;
public static int Widget_AppCompat_TextView_SpinnerItem=0x7f070121;
public static int Widget_AppCompat_Toolbar=0x7f070122;
public static int Widget_AppCompat_Toolbar_Button_Navigation=0x7f070123;
}
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.cjj:background}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit com.cjj:backgroundSplit}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_backgroundStacked com.cjj:backgroundStacked}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetEnd com.cjj:contentInsetEnd}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetLeft com.cjj:contentInsetLeft}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetRight com.cjj:contentInsetRight}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_contentInsetStart com.cjj:contentInsetStart}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_customNavigationLayout com.cjj:customNavigationLayout}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_displayOptions com.cjj:displayOptions}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_divider com.cjj:divider}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_elevation com.cjj:elevation}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_height com.cjj:height}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_hideOnContentScroll com.cjj:hideOnContentScroll}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_homeAsUpIndicator com.cjj:homeAsUpIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_homeLayout com.cjj:homeLayout}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_icon com.cjj:icon}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.cjj:indeterminateProgressStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_itemPadding com.cjj:itemPadding}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_logo com.cjj:logo}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_navigationMode com.cjj:navigationMode}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_popupTheme com.cjj:popupTheme}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding com.cjj:progressBarPadding}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_progressBarStyle com.cjj:progressBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_subtitle com.cjj:subtitle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle com.cjj:subtitleTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_title com.cjj:title}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle com.cjj:titleTextStyle}</code></td><td></td></tr>
</table>
@see #ActionBar_background
@see #ActionBar_backgroundSplit
@see #ActionBar_backgroundStacked
@see #ActionBar_contentInsetEnd
@see #ActionBar_contentInsetLeft
@see #ActionBar_contentInsetRight
@see #ActionBar_contentInsetStart
@see #ActionBar_customNavigationLayout
@see #ActionBar_displayOptions
@see #ActionBar_divider
@see #ActionBar_elevation
@see #ActionBar_height
@see #ActionBar_hideOnContentScroll
@see #ActionBar_homeAsUpIndicator
@see #ActionBar_homeLayout
@see #ActionBar_icon
@see #ActionBar_indeterminateProgressStyle
@see #ActionBar_itemPadding
@see #ActionBar_logo
@see #ActionBar_navigationMode
@see #ActionBar_popupTheme
@see #ActionBar_progressBarPadding
@see #ActionBar_progressBarStyle
@see #ActionBar_subtitle
@see #ActionBar_subtitleTextStyle
@see #ActionBar_title
@see #ActionBar_titleTextStyle
*/
public static final int[] ActionBar = {
0x7f010001, 0x7f010003, 0x7f010004, 0x7f010005,
0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009,
0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d,
0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011,
0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015,
0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019,
0x7f01001a, 0x7f01001b, 0x7f01009c
};
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#background}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:background
*/
public static int ActionBar_background = 10;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#backgroundSplit}
attribute's value can be found in the {@link #ActionBar} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name com.cjj:backgroundSplit
*/
public static int ActionBar_backgroundSplit = 12;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#backgroundStacked}
attribute's value can be found in the {@link #ActionBar} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name com.cjj:backgroundStacked
*/
public static int ActionBar_backgroundStacked = 11;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#contentInsetEnd}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:contentInsetEnd
*/
public static int ActionBar_contentInsetEnd = 21;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#contentInsetLeft}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:contentInsetLeft
*/
public static int ActionBar_contentInsetLeft = 22;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#contentInsetRight}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:contentInsetRight
*/
public static int ActionBar_contentInsetRight = 23;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#contentInsetStart}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:contentInsetStart
*/
public static int ActionBar_contentInsetStart = 20;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#customNavigationLayout}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:customNavigationLayout
*/
public static int ActionBar_customNavigationLayout = 13;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#displayOptions}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
@attr name com.cjj:displayOptions
*/
public static int ActionBar_displayOptions = 3;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#divider}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:divider
*/
public static int ActionBar_divider = 9;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#elevation}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:elevation
*/
public static int ActionBar_elevation = 24;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#height}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:height
*/
public static int ActionBar_height = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#hideOnContentScroll}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:hideOnContentScroll
*/
public static int ActionBar_hideOnContentScroll = 19;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#homeAsUpIndicator}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:homeAsUpIndicator
*/
public static int ActionBar_homeAsUpIndicator = 26;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#homeLayout}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:homeLayout
*/
public static int ActionBar_homeLayout = 14;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#icon}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:icon
*/
public static int ActionBar_icon = 7;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#indeterminateProgressStyle}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:indeterminateProgressStyle
*/
public static int ActionBar_indeterminateProgressStyle = 16;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#itemPadding}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:itemPadding
*/
public static int ActionBar_itemPadding = 18;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#logo}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:logo
*/
public static int ActionBar_logo = 8;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#navigationMode}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td></td></tr>
<tr><td><code>listMode</code></td><td>1</td><td></td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td></td></tr>
</table>
@attr name com.cjj:navigationMode
*/
public static int ActionBar_navigationMode = 2;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#popupTheme}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:popupTheme
*/
public static int ActionBar_popupTheme = 25;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progressBarPadding}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progressBarPadding
*/
public static int ActionBar_progressBarPadding = 17;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progressBarStyle}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:progressBarStyle
*/
public static int ActionBar_progressBarStyle = 15;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#subtitle}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:subtitle
*/
public static int ActionBar_subtitle = 4;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#subtitleTextStyle}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:subtitleTextStyle
*/
public static int ActionBar_subtitleTextStyle = 6;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#title}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:title
*/
public static int ActionBar_title = 1;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#titleTextStyle}
attribute's value can be found in the {@link #ActionBar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:titleTextStyle
*/
public static int ActionBar_titleTextStyle = 5;
/** Attributes that can be used with a ActionBarLayout.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
</table>
@see #ActionBarLayout_android_layout_gravity
*/
public static final int[] ActionBarLayout = {
0x010100b3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #ActionBarLayout} array.
@attr name android:layout_gravity
*/
public static int ActionBarLayout_android_layout_gravity = 0;
/** Attributes that can be used with a ActionMenuItemView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr>
</table>
@see #ActionMenuItemView_android_minWidth
*/
public static final int[] ActionMenuItemView = {
0x0101013f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #ActionMenuItemView} array.
@attr name android:minWidth
*/
public static int ActionMenuItemView_android_minWidth = 0;
/** Attributes that can be used with a ActionMenuView.
*/
public static final int[] ActionMenuView = {
};
/** Attributes that can be used with a ActionMode.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMode_background com.cjj:background}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit com.cjj:backgroundSplit}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_closeItemLayout com.cjj:closeItemLayout}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_height com.cjj:height}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle com.cjj:subtitleTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle com.cjj:titleTextStyle}</code></td><td></td></tr>
</table>
@see #ActionMode_background
@see #ActionMode_backgroundSplit
@see #ActionMode_closeItemLayout
@see #ActionMode_height
@see #ActionMode_subtitleTextStyle
@see #ActionMode_titleTextStyle
*/
public static final int[] ActionMode = {
0x7f010001, 0x7f010007, 0x7f010008, 0x7f01000c,
0x7f01000e, 0x7f01001c
};
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#background}
attribute's value can be found in the {@link #ActionMode} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:background
*/
public static int ActionMode_background = 3;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#backgroundSplit}
attribute's value can be found in the {@link #ActionMode} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name com.cjj:backgroundSplit
*/
public static int ActionMode_backgroundSplit = 4;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#closeItemLayout}
attribute's value can be found in the {@link #ActionMode} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:closeItemLayout
*/
public static int ActionMode_closeItemLayout = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#height}
attribute's value can be found in the {@link #ActionMode} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:height
*/
public static int ActionMode_height = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#subtitleTextStyle}
attribute's value can be found in the {@link #ActionMode} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:subtitleTextStyle
*/
public static int ActionMode_subtitleTextStyle = 2;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#titleTextStyle}
attribute's value can be found in the {@link #ActionMode} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:titleTextStyle
*/
public static int ActionMode_titleTextStyle = 1;
/** Attributes that can be used with a ActivityChooserView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable com.cjj:expandActivityOverflowButtonDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #ActivityChooserView_initialActivityCount com.cjj:initialActivityCount}</code></td><td></td></tr>
</table>
@see #ActivityChooserView_expandActivityOverflowButtonDrawable
@see #ActivityChooserView_initialActivityCount
*/
public static final int[] ActivityChooserView = {
0x7f01001d, 0x7f01001e
};
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#expandActivityOverflowButtonDrawable}
attribute's value can be found in the {@link #ActivityChooserView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:expandActivityOverflowButtonDrawable
*/
public static int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#initialActivityCount}
attribute's value can be found in the {@link #ActivityChooserView} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:initialActivityCount
*/
public static int ActivityChooserView_initialActivityCount = 0;
/** Attributes that can be used with a AlertDialog.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #AlertDialog_android_layout android:layout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_buttonPanelSideLayout com.cjj:buttonPanelSideLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_listItemLayout com.cjj:listItemLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_listLayout com.cjj:listLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_multiChoiceItemLayout com.cjj:multiChoiceItemLayout}</code></td><td></td></tr>
<tr><td><code>{@link #AlertDialog_singleChoiceItemLayout com.cjj: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, 0x7f01001f, 0x7f010020, 0x7f010021,
0x7f010022, 0x7f010023
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout}
attribute's value can be found in the {@link #AlertDialog} array.
@attr name android:layout
*/
public static int AlertDialog_android_layout = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#buttonPanelSideLayout}
attribute's value can be found in the {@link #AlertDialog} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:buttonPanelSideLayout
*/
public static int AlertDialog_buttonPanelSideLayout = 1;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#listItemLayout}
attribute's value can be found in the {@link #AlertDialog} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:listItemLayout
*/
public static int AlertDialog_listItemLayout = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#listLayout}
attribute's value can be found in the {@link #AlertDialog} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:listLayout
*/
public static int AlertDialog_listLayout = 2;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#multiChoiceItemLayout}
attribute's value can be found in the {@link #AlertDialog} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:multiChoiceItemLayout
*/
public static int AlertDialog_multiChoiceItemLayout = 3;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#singleChoiceItemLayout}
attribute's value can be found in the {@link #AlertDialog} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:singleChoiceItemLayout
*/
public static int AlertDialog_singleChoiceItemLayout = 4;
/** 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.cjj:textAllCaps}</code></td><td></td></tr>
</table>
@see #AppCompatTextView_android_textAppearance
@see #AppCompatTextView_textAllCaps
*/
public static final int[] AppCompatTextView = {
0x01010034, 0x7f010024
};
/**
<p>This symbol is the offset where the {@link android.R.attr#textAppearance}
attribute's value can be found in the {@link #AppCompatTextView} array.
@attr name android:textAppearance
*/
public static int AppCompatTextView_android_textAppearance = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#textAllCaps}
attribute's value can be found in the {@link #AppCompatTextView} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
@attr name com.cjj:textAllCaps
*/
public static int AppCompatTextView_textAllCaps = 1;
/** Attributes that can be used with a CircleProgressBar.
<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 #CircleProgressBar_mlpb_arrow_height com.cjj:mlpb_arrow_height}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_arrow_width com.cjj:mlpb_arrow_width}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_background_color com.cjj:mlpb_background_color}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_enable_circle_background com.cjj:mlpb_enable_circle_background}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_inner_radius com.cjj:mlpb_inner_radius}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_max com.cjj:mlpb_max}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_progress com.cjj:mlpb_progress}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_progress_color com.cjj:mlpb_progress_color}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_progress_stoke_width com.cjj:mlpb_progress_stoke_width}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_progress_text_color com.cjj:mlpb_progress_text_color}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_progress_text_size com.cjj:mlpb_progress_text_size}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_progress_text_visibility com.cjj:mlpb_progress_text_visibility}</code></td><td></td></tr>
<tr><td><code>{@link #CircleProgressBar_mlpb_show_arrow com.cjj:mlpb_show_arrow}</code></td><td></td></tr>
</table>
@see #CircleProgressBar_mlpb_arrow_height
@see #CircleProgressBar_mlpb_arrow_width
@see #CircleProgressBar_mlpb_background_color
@see #CircleProgressBar_mlpb_enable_circle_background
@see #CircleProgressBar_mlpb_inner_radius
@see #CircleProgressBar_mlpb_max
@see #CircleProgressBar_mlpb_progress
@see #CircleProgressBar_mlpb_progress_color
@see #CircleProgressBar_mlpb_progress_stoke_width
@see #CircleProgressBar_mlpb_progress_text_color
@see #CircleProgressBar_mlpb_progress_text_size
@see #CircleProgressBar_mlpb_progress_text_visibility
@see #CircleProgressBar_mlpb_show_arrow
*/
public static final int[] CircleProgressBar = {
0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028,
0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c,
0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030,
0x7f010031
};
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_arrow_height}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_arrow_height
*/
public static int CircleProgressBar_mlpb_arrow_height = 7;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_arrow_width}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_arrow_width
*/
public static int CircleProgressBar_mlpb_arrow_width = 6;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_background_color}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_background_color
*/
public static int CircleProgressBar_mlpb_background_color = 1;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_enable_circle_background}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_enable_circle_background
*/
public static int CircleProgressBar_mlpb_enable_circle_background = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_inner_radius}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_inner_radius
*/
public static int CircleProgressBar_mlpb_inner_radius = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_max}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_max
*/
public static int CircleProgressBar_mlpb_max = 9;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_progress}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_progress
*/
public static int CircleProgressBar_mlpb_progress = 8;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_progress_color}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_progress_color
*/
public static int CircleProgressBar_mlpb_progress_color = 2;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_progress_stoke_width}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_progress_stoke_width
*/
public static int CircleProgressBar_mlpb_progress_stoke_width = 3;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_progress_text_color}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_progress_text_color
*/
public static int CircleProgressBar_mlpb_progress_text_color = 11;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_progress_text_size}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_progress_text_size
*/
public static int CircleProgressBar_mlpb_progress_text_size = 10;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_progress_text_visibility}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>visible</code></td><td>0</td><td></td></tr>
<tr><td><code>invisible</code></td><td>1</td><td></td></tr>
</table>
@attr name com.cjj:mlpb_progress_text_visibility
*/
public static int CircleProgressBar_mlpb_progress_text_visibility = 12;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#mlpb_show_arrow}
attribute's value can be found in the {@link #CircleProgressBar} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:mlpb_show_arrow
*/
public static int CircleProgressBar_mlpb_show_arrow = 4;
/** 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_barSize com.cjj:barSize}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_color com.cjj:color}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_drawableSize com.cjj:drawableSize}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars com.cjj:gapBetweenBars}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_middleBarArrowSize com.cjj:middleBarArrowSize}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_spinBars com.cjj:spinBars}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_thickness com.cjj:thickness}</code></td><td></td></tr>
<tr><td><code>{@link #DrawerArrowToggle_topBottomBarArrowSize com.cjj:topBottomBarArrowSize}</code></td><td></td></tr>
</table>
@see #DrawerArrowToggle_barSize
@see #DrawerArrowToggle_color
@see #DrawerArrowToggle_drawableSize
@see #DrawerArrowToggle_gapBetweenBars
@see #DrawerArrowToggle_middleBarArrowSize
@see #DrawerArrowToggle_spinBars
@see #DrawerArrowToggle_thickness
@see #DrawerArrowToggle_topBottomBarArrowSize
*/
public static final int[] DrawerArrowToggle = {
0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035,
0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039
};
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#barSize}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:barSize
*/
public static int DrawerArrowToggle_barSize = 6;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#color}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:color
*/
public static int DrawerArrowToggle_color = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#drawableSize}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:drawableSize
*/
public static int DrawerArrowToggle_drawableSize = 2;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#gapBetweenBars}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:gapBetweenBars
*/
public static int DrawerArrowToggle_gapBetweenBars = 3;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#middleBarArrowSize}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:middleBarArrowSize
*/
public static int DrawerArrowToggle_middleBarArrowSize = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#spinBars}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:spinBars
*/
public static int DrawerArrowToggle_spinBars = 1;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#thickness}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:thickness
*/
public static int DrawerArrowToggle_thickness = 7;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#topBottomBarArrowSize}
attribute's value can be found in the {@link #DrawerArrowToggle} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:topBottomBarArrowSize
*/
public static int DrawerArrowToggle_topBottomBarArrowSize = 4;
/** Attributes that can be used with a LinearLayoutCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_baselineAligned android:baselineAligned}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_baselineAlignedChildIndex android:baselineAlignedChildIndex}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_orientation android:orientation}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_android_weightSum android:weightSum}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_divider com.cjj:divider}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_dividerPadding com.cjj:dividerPadding}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild com.cjj:measureWithLargestChild}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_showDividers com.cjj:showDividers}</code></td><td></td></tr>
</table>
@see #LinearLayoutCompat_android_baselineAligned
@see #LinearLayoutCompat_android_baselineAlignedChildIndex
@see #LinearLayoutCompat_android_gravity
@see #LinearLayoutCompat_android_orientation
@see #LinearLayoutCompat_android_weightSum
@see #LinearLayoutCompat_divider
@see #LinearLayoutCompat_dividerPadding
@see #LinearLayoutCompat_measureWithLargestChild
@see #LinearLayoutCompat_showDividers
*/
public static final int[] LinearLayoutCompat = {
0x010100af, 0x010100c4, 0x01010126, 0x01010127,
0x01010128, 0x7f01000b, 0x7f01003a, 0x7f01003b,
0x7f01003c
};
/**
<p>This symbol is the offset where the {@link android.R.attr#baselineAligned}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:baselineAligned
*/
public static int LinearLayoutCompat_android_baselineAligned = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#baselineAlignedChildIndex}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:baselineAlignedChildIndex
*/
public static int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:gravity
*/
public static int LinearLayoutCompat_android_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#orientation}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:orientation
*/
public static int LinearLayoutCompat_android_orientation = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#weightSum}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
@attr name android:weightSum
*/
public static int LinearLayoutCompat_android_weightSum = 4;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#divider}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:divider
*/
public static int LinearLayoutCompat_divider = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#dividerPadding}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:dividerPadding
*/
public static int LinearLayoutCompat_dividerPadding = 8;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#measureWithLargestChild}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:measureWithLargestChild
*/
public static int LinearLayoutCompat_measureWithLargestChild = 6;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#showDividers}
attribute's value can be found in the {@link #LinearLayoutCompat} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
@attr name com.cjj:showDividers
*/
public static int LinearLayoutCompat_showDividers = 7;
/** Attributes that can be used with a LinearLayoutCompat_Layout.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_height android:layout_height}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_weight android:layout_weight}</code></td><td></td></tr>
<tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_width android:layout_width}</code></td><td></td></tr>
</table>
@see #LinearLayoutCompat_Layout_android_layout_gravity
@see #LinearLayoutCompat_Layout_android_layout_height
@see #LinearLayoutCompat_Layout_android_layout_weight
@see #LinearLayoutCompat_Layout_android_layout_width
*/
public static final int[] LinearLayoutCompat_Layout = {
0x010100b3, 0x010100f4, 0x010100f5, 0x01010181
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_gravity
*/
public static int LinearLayoutCompat_Layout_android_layout_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_height}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_height
*/
public static int LinearLayoutCompat_Layout_android_layout_height = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_weight}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_weight
*/
public static int LinearLayoutCompat_Layout_android_layout_weight = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_width}
attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array.
@attr name android:layout_width
*/
public static int LinearLayoutCompat_Layout_android_layout_width = 1;
/** Attributes that can be used with a ListPopupWindow.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td></td></tr>
<tr><td><code>{@link #ListPopupWindow_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td></td></tr>
</table>
@see #ListPopupWindow_android_dropDownHorizontalOffset
@see #ListPopupWindow_android_dropDownVerticalOffset
*/
public static final int[] ListPopupWindow = {
0x010102ac, 0x010102ad
};
/**
<p>This symbol is the offset where the {@link android.R.attr#dropDownHorizontalOffset}
attribute's value can be found in the {@link #ListPopupWindow} array.
@attr name android:dropDownHorizontalOffset
*/
public static int ListPopupWindow_android_dropDownHorizontalOffset = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#dropDownVerticalOffset}
attribute's value can be found in the {@link #ListPopupWindow} array.
@attr name android:dropDownVerticalOffset
*/
public static int ListPopupWindow_android_dropDownVerticalOffset = 1;
/** Attributes that can be used with a MaterialRefreshLayout.
<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 #MaterialRefreshLayout_isLoadMore com.cjj:isLoadMore}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_overlay com.cjj:overlay}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_arrow_height com.cjj:progress_arrow_height}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_arrow_width com.cjj:progress_arrow_width}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_backgroud_color com.cjj:progress_backgroud_color}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_colors com.cjj:progress_colors}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_max_value com.cjj:progress_max_value}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_show_arrow com.cjj:progress_show_arrow}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_show_circle_backgroud com.cjj:progress_show_circle_backgroud}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_size_type com.cjj:progress_size_type}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_stoke_width com.cjj:progress_stoke_width}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_text_color com.cjj:progress_text_color}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_text_size com.cjj:progress_text_size}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_text_visibility com.cjj:progress_text_visibility}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_progress_value com.cjj:progress_value}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_wave_color com.cjj:wave_color}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_wave_height_type com.cjj:wave_height_type}</code></td><td></td></tr>
<tr><td><code>{@link #MaterialRefreshLayout_wave_show com.cjj:wave_show}</code></td><td></td></tr>
</table>
@see #MaterialRefreshLayout_isLoadMore
@see #MaterialRefreshLayout_overlay
@see #MaterialRefreshLayout_progress_arrow_height
@see #MaterialRefreshLayout_progress_arrow_width
@see #MaterialRefreshLayout_progress_backgroud_color
@see #MaterialRefreshLayout_progress_colors
@see #MaterialRefreshLayout_progress_max_value
@see #MaterialRefreshLayout_progress_show_arrow
@see #MaterialRefreshLayout_progress_show_circle_backgroud
@see #MaterialRefreshLayout_progress_size_type
@see #MaterialRefreshLayout_progress_stoke_width
@see #MaterialRefreshLayout_progress_text_color
@see #MaterialRefreshLayout_progress_text_size
@see #MaterialRefreshLayout_progress_text_visibility
@see #MaterialRefreshLayout_progress_value
@see #MaterialRefreshLayout_wave_color
@see #MaterialRefreshLayout_wave_height_type
@see #MaterialRefreshLayout_wave_show
*/
public static final int[] MaterialRefreshLayout = {
0x7f01003d, 0x7f01003e, 0x7f01003f, 0x7f010040,
0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044,
0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048,
0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c,
0x7f01004d, 0x7f01004e
};
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#isLoadMore}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:isLoadMore
*/
public static int MaterialRefreshLayout_isLoadMore = 17;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#overlay}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:overlay
*/
public static int MaterialRefreshLayout_overlay = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_arrow_height}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progress_arrow_height
*/
public static int MaterialRefreshLayout_progress_arrow_height = 9;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_arrow_width}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progress_arrow_width
*/
public static int MaterialRefreshLayout_progress_arrow_width = 8;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_backgroud_color}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progress_backgroud_color
*/
public static int MaterialRefreshLayout_progress_backgroud_color = 6;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_colors}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:progress_colors
*/
public static int MaterialRefreshLayout_progress_colors = 4;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_max_value}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progress_max_value
*/
public static int MaterialRefreshLayout_progress_max_value = 12;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_show_arrow}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progress_show_arrow
*/
public static int MaterialRefreshLayout_progress_show_arrow = 7;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_show_circle_backgroud}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progress_show_circle_backgroud
*/
public static int MaterialRefreshLayout_progress_show_circle_backgroud = 10;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_size_type}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td></td></tr>
<tr><td><code>big</code></td><td>1</td><td></td></tr>
</table>
@attr name com.cjj:progress_size_type
*/
public static int MaterialRefreshLayout_progress_size_type = 16;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_stoke_width}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progress_stoke_width
*/
public static int MaterialRefreshLayout_progress_stoke_width = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_text_color}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progress_text_color
*/
public static int MaterialRefreshLayout_progress_text_color = 14;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_text_size}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progress_text_size
*/
public static int MaterialRefreshLayout_progress_text_size = 13;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_text_visibility}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>visible</code></td><td>0</td><td></td></tr>
<tr><td><code>invisible</code></td><td>1</td><td></td></tr>
</table>
@attr name com.cjj:progress_text_visibility
*/
public static int MaterialRefreshLayout_progress_text_visibility = 15;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#progress_value}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:progress_value
*/
public static int MaterialRefreshLayout_progress_value = 11;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#wave_color}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:wave_color
*/
public static int MaterialRefreshLayout_wave_color = 2;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#wave_height_type}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td></td></tr>
<tr><td><code>higher</code></td><td>1</td><td></td></tr>
</table>
@attr name com.cjj:wave_height_type
*/
public static int MaterialRefreshLayout_wave_height_type = 1;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#wave_show}
attribute's value can be found in the {@link #MaterialRefreshLayout} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:wave_show
*/
public static int MaterialRefreshLayout_wave_show = 3;
/** Attributes that can be used with a MenuGroup.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td></td></tr>
<tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td></td></tr>
<tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td></td></tr>
<tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td></td></tr>
<tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td></td></tr>
<tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td></td></tr>
</table>
@see #MenuGroup_android_checkableBehavior
@see #MenuGroup_android_enabled
@see #MenuGroup_android_id
@see #MenuGroup_android_menuCategory
@see #MenuGroup_android_orderInCategory
@see #MenuGroup_android_visible
*/
public static final int[] MenuGroup = {
0x0101000e, 0x010100d0, 0x01010194, 0x010101de,
0x010101df, 0x010101e0
};
/**
<p>This symbol is the offset where the {@link android.R.attr#checkableBehavior}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:checkableBehavior
*/
public static int MenuGroup_android_checkableBehavior = 5;
/**
<p>This symbol is the offset where the {@link android.R.attr#enabled}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:enabled
*/
public static int MenuGroup_android_enabled = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#id}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:id
*/
public static int MenuGroup_android_id = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#menuCategory}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:menuCategory
*/
public static int MenuGroup_android_menuCategory = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#orderInCategory}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:orderInCategory
*/
public static int MenuGroup_android_orderInCategory = 4;
/**
<p>This symbol is the offset where the {@link android.R.attr#visible}
attribute's value can be found in the {@link #MenuGroup} array.
@attr name android:visible
*/
public static int MenuGroup_android_visible = 2;
/** Attributes that can be used with a MenuItem.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuItem_actionLayout com.cjj:actionLayout}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass com.cjj:actionProviderClass}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_actionViewClass com.cjj:actionViewClass}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td></td></tr>
<tr><td><code>{@link #MenuItem_showAsAction com.cjj:showAsAction}</code></td><td></td></tr>
</table>
@see #MenuItem_actionLayout
@see #MenuItem_actionProviderClass
@see #MenuItem_actionViewClass
@see #MenuItem_android_alphabeticShortcut
@see #MenuItem_android_checkable
@see #MenuItem_android_checked
@see #MenuItem_android_enabled
@see #MenuItem_android_icon
@see #MenuItem_android_id
@see #MenuItem_android_menuCategory
@see #MenuItem_android_numericShortcut
@see #MenuItem_android_onClick
@see #MenuItem_android_orderInCategory
@see #MenuItem_android_title
@see #MenuItem_android_titleCondensed
@see #MenuItem_android_visible
@see #MenuItem_showAsAction
*/
public static final int[] MenuItem = {
0x01010002, 0x0101000e, 0x010100d0, 0x01010106,
0x01010194, 0x010101de, 0x010101df, 0x010101e1,
0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5,
0x0101026f, 0x7f01004f, 0x7f010050, 0x7f010051,
0x7f010052
};
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionLayout}
attribute's value can be found in the {@link #MenuItem} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionLayout
*/
public static int MenuItem_actionLayout = 14;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionProviderClass}
attribute's value can be found in the {@link #MenuItem} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:actionProviderClass
*/
public static int MenuItem_actionProviderClass = 16;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionViewClass}
attribute's value can be found in the {@link #MenuItem} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:actionViewClass
*/
public static int MenuItem_actionViewClass = 15;
/**
<p>This symbol is the offset where the {@link android.R.attr#alphabeticShortcut}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:alphabeticShortcut
*/
public static int MenuItem_android_alphabeticShortcut = 9;
/**
<p>This symbol is the offset where the {@link android.R.attr#checkable}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:checkable
*/
public static int MenuItem_android_checkable = 11;
/**
<p>This symbol is the offset where the {@link android.R.attr#checked}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:checked
*/
public static int MenuItem_android_checked = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#enabled}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:enabled
*/
public static int MenuItem_android_enabled = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#icon}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:icon
*/
public static int MenuItem_android_icon = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#id}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:id
*/
public static int MenuItem_android_id = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#menuCategory}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:menuCategory
*/
public static int MenuItem_android_menuCategory = 5;
/**
<p>This symbol is the offset where the {@link android.R.attr#numericShortcut}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:numericShortcut
*/
public static int MenuItem_android_numericShortcut = 10;
/**
<p>This symbol is the offset where the {@link android.R.attr#onClick}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:onClick
*/
public static int MenuItem_android_onClick = 12;
/**
<p>This symbol is the offset where the {@link android.R.attr#orderInCategory}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:orderInCategory
*/
public static int MenuItem_android_orderInCategory = 6;
/**
<p>This symbol is the offset where the {@link android.R.attr#title}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:title
*/
public static int MenuItem_android_title = 7;
/**
<p>This symbol is the offset where the {@link android.R.attr#titleCondensed}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:titleCondensed
*/
public static int MenuItem_android_titleCondensed = 8;
/**
<p>This symbol is the offset where the {@link android.R.attr#visible}
attribute's value can be found in the {@link #MenuItem} array.
@attr name android:visible
*/
public static int MenuItem_android_visible = 4;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#showAsAction}
attribute's value can be found in the {@link #MenuItem} array.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td></td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td></td></tr>
<tr><td><code>always</code></td><td>2</td><td></td></tr>
<tr><td><code>withText</code></td><td>4</td><td></td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td></td></tr>
</table>
@attr name com.cjj:showAsAction
*/
public static int MenuItem_showAsAction = 13;
/** Attributes that can be used with a MenuView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr>
<tr><td><code>{@link #MenuView_preserveIconSpacing com.cjj:preserveIconSpacing}</code></td><td></td></tr>
</table>
@see #MenuView_android_headerBackground
@see #MenuView_android_horizontalDivider
@see #MenuView_android_itemBackground
@see #MenuView_android_itemIconDisabledAlpha
@see #MenuView_android_itemTextAppearance
@see #MenuView_android_verticalDivider
@see #MenuView_android_windowAnimationStyle
@see #MenuView_preserveIconSpacing
*/
public static final int[] MenuView = {
0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e,
0x0101012f, 0x01010130, 0x01010131, 0x7f010053
};
/**
<p>This symbol is the offset where the {@link android.R.attr#headerBackground}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:headerBackground
*/
public static int MenuView_android_headerBackground = 4;
/**
<p>This symbol is the offset where the {@link android.R.attr#horizontalDivider}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:horizontalDivider
*/
public static int MenuView_android_horizontalDivider = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#itemBackground}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:itemBackground
*/
public static int MenuView_android_itemBackground = 5;
/**
<p>This symbol is the offset where the {@link android.R.attr#itemIconDisabledAlpha}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:itemIconDisabledAlpha
*/
public static int MenuView_android_itemIconDisabledAlpha = 6;
/**
<p>This symbol is the offset where the {@link android.R.attr#itemTextAppearance}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:itemTextAppearance
*/
public static int MenuView_android_itemTextAppearance = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#verticalDivider}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:verticalDivider
*/
public static int MenuView_android_verticalDivider = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle}
attribute's value can be found in the {@link #MenuView} array.
@attr name android:windowAnimationStyle
*/
public static int MenuView_android_windowAnimationStyle = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#preserveIconSpacing}
attribute's value can be found in the {@link #MenuView} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:preserveIconSpacing
*/
public static int MenuView_preserveIconSpacing = 7;
/** Attributes that can be used with a PopupWindow.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #PopupWindow_android_popupBackground android:popupBackground}</code></td><td></td></tr>
<tr><td><code>{@link #PopupWindow_overlapAnchor com.cjj:overlapAnchor}</code></td><td></td></tr>
</table>
@see #PopupWindow_android_popupBackground
@see #PopupWindow_overlapAnchor
*/
public static final int[] PopupWindow = {
0x01010176, 0x7f010054
};
/**
<p>This symbol is the offset where the {@link android.R.attr#popupBackground}
attribute's value can be found in the {@link #PopupWindow} array.
@attr name android:popupBackground
*/
public static int PopupWindow_android_popupBackground = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#overlapAnchor}
attribute's value can be found in the {@link #PopupWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:overlapAnchor
*/
public static int PopupWindow_overlapAnchor = 1;
/** Attributes that can be used with a PopupWindowBackgroundState.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #PopupWindowBackgroundState_state_above_anchor com.cjj:state_above_anchor}</code></td><td></td></tr>
</table>
@see #PopupWindowBackgroundState_state_above_anchor
*/
public static final int[] PopupWindowBackgroundState = {
0x7f010055
};
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#state_above_anchor}
attribute's value can be found in the {@link #PopupWindowBackgroundState} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:state_above_anchor
*/
public static 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_imeOptions android:imeOptions}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_closeIcon com.cjj:closeIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_commitIcon com.cjj:commitIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_defaultQueryHint com.cjj:defaultQueryHint}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_goIcon com.cjj:goIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_iconifiedByDefault com.cjj:iconifiedByDefault}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_layout com.cjj:layout}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_queryBackground com.cjj:queryBackground}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_queryHint com.cjj:queryHint}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_searchHintIcon com.cjj:searchHintIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_searchIcon com.cjj:searchIcon}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_submitBackground com.cjj:submitBackground}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_suggestionRowLayout com.cjj:suggestionRowLayout}</code></td><td></td></tr>
<tr><td><code>{@link #SearchView_voiceIcon com.cjj:voiceIcon}</code></td><td></td></tr>
</table>
@see #SearchView_android_focusable
@see #SearchView_android_imeOptions
@see #SearchView_android_inputType
@see #SearchView_android_maxWidth
@see #SearchView_closeIcon
@see #SearchView_commitIcon
@see #SearchView_defaultQueryHint
@see #SearchView_goIcon
@see #SearchView_iconifiedByDefault
@see #SearchView_layout
@see #SearchView_queryBackground
@see #SearchView_queryHint
@see #SearchView_searchHintIcon
@see #SearchView_searchIcon
@see #SearchView_submitBackground
@see #SearchView_suggestionRowLayout
@see #SearchView_voiceIcon
*/
public static final int[] SearchView = {
0x010100da, 0x0101011f, 0x01010220, 0x01010264,
0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059,
0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d,
0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061,
0x7f010062
};
/**
<p>This symbol is the offset where the {@link android.R.attr#focusable}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:focusable
*/
public static int SearchView_android_focusable = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#imeOptions}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:imeOptions
*/
public static int SearchView_android_imeOptions = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#inputType}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:inputType
*/
public static int SearchView_android_inputType = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#maxWidth}
attribute's value can be found in the {@link #SearchView} array.
@attr name android:maxWidth
*/
public static int SearchView_android_maxWidth = 1;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#closeIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:closeIcon
*/
public static int SearchView_closeIcon = 8;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#commitIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:commitIcon
*/
public static int SearchView_commitIcon = 13;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#defaultQueryHint}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:defaultQueryHint
*/
public static int SearchView_defaultQueryHint = 7;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#goIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:goIcon
*/
public static int SearchView_goIcon = 9;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#iconifiedByDefault}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:iconifiedByDefault
*/
public static int SearchView_iconifiedByDefault = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#layout}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:layout
*/
public static int SearchView_layout = 4;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#queryBackground}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:queryBackground
*/
public static int SearchView_queryBackground = 15;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#queryHint}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:queryHint
*/
public static int SearchView_queryHint = 6;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#searchHintIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:searchHintIcon
*/
public static int SearchView_searchHintIcon = 11;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#searchIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:searchIcon
*/
public static int SearchView_searchIcon = 10;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#submitBackground}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:submitBackground
*/
public static int SearchView_submitBackground = 16;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#suggestionRowLayout}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:suggestionRowLayout
*/
public static int SearchView_suggestionRowLayout = 14;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#voiceIcon}
attribute's value can be found in the {@link #SearchView} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:voiceIcon
*/
public static int SearchView_voiceIcon = 12;
/** 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_background android:background}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_dropDownSelector android:dropDownSelector}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_disableChildrenWhenDisabled com.cjj:disableChildrenWhenDisabled}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_popupPromptView com.cjj:popupPromptView}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_prompt com.cjj:prompt}</code></td><td></td></tr>
<tr><td><code>{@link #Spinner_spinnerMode com.cjj:spinnerMode}</code></td><td></td></tr>
</table>
@see #Spinner_android_background
@see #Spinner_android_dropDownHorizontalOffset
@see #Spinner_android_dropDownSelector
@see #Spinner_android_dropDownVerticalOffset
@see #Spinner_android_dropDownWidth
@see #Spinner_android_gravity
@see #Spinner_android_popupBackground
@see #Spinner_disableChildrenWhenDisabled
@see #Spinner_popupPromptView
@see #Spinner_prompt
@see #Spinner_spinnerMode
*/
public static final int[] Spinner = {
0x010100af, 0x010100d4, 0x01010175, 0x01010176,
0x01010262, 0x010102ac, 0x010102ad, 0x7f010063,
0x7f010064, 0x7f010065, 0x7f010066
};
/**
<p>This symbol is the offset where the {@link android.R.attr#background}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:background
*/
public static int Spinner_android_background = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#dropDownHorizontalOffset}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:dropDownHorizontalOffset
*/
public static int Spinner_android_dropDownHorizontalOffset = 5;
/**
<p>This symbol is the offset where the {@link android.R.attr#dropDownSelector}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:dropDownSelector
*/
public static int Spinner_android_dropDownSelector = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#dropDownVerticalOffset}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:dropDownVerticalOffset
*/
public static int Spinner_android_dropDownVerticalOffset = 6;
/**
<p>This symbol is the offset where the {@link android.R.attr#dropDownWidth}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:dropDownWidth
*/
public static int Spinner_android_dropDownWidth = 4;
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:gravity
*/
public static int Spinner_android_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#popupBackground}
attribute's value can be found in the {@link #Spinner} array.
@attr name android:popupBackground
*/
public static int Spinner_android_popupBackground = 3;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#disableChildrenWhenDisabled}
attribute's value can be found in the {@link #Spinner} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:disableChildrenWhenDisabled
*/
public static int Spinner_disableChildrenWhenDisabled = 10;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#popupPromptView}
attribute's value can be found in the {@link #Spinner} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:popupPromptView
*/
public static int Spinner_popupPromptView = 9;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#prompt}
attribute's value can be found in the {@link #Spinner} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:prompt
*/
public static int Spinner_prompt = 7;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#spinnerMode}
attribute's value can be found in the {@link #Spinner} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td></td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td></td></tr>
</table>
@attr name com.cjj:spinnerMode
*/
public static int Spinner_spinnerMode = 8;
/** Attributes that can be used with a SwitchCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SwitchCompat_android_textOff android:textOff}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_android_textOn android:textOn}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_android_thumb android:thumb}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_showText com.cjj:showText}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_splitTrack com.cjj:splitTrack}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_switchMinWidth com.cjj:switchMinWidth}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_switchPadding com.cjj:switchPadding}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_switchTextAppearance com.cjj:switchTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_thumbTextPadding com.cjj:thumbTextPadding}</code></td><td></td></tr>
<tr><td><code>{@link #SwitchCompat_track com.cjj:track}</code></td><td></td></tr>
</table>
@see #SwitchCompat_android_textOff
@see #SwitchCompat_android_textOn
@see #SwitchCompat_android_thumb
@see #SwitchCompat_showText
@see #SwitchCompat_splitTrack
@see #SwitchCompat_switchMinWidth
@see #SwitchCompat_switchPadding
@see #SwitchCompat_switchTextAppearance
@see #SwitchCompat_thumbTextPadding
@see #SwitchCompat_track
*/
public static final int[] SwitchCompat = {
0x01010124, 0x01010125, 0x01010142, 0x7f010067,
0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b,
0x7f01006c, 0x7f01006d
};
/**
<p>This symbol is the offset where the {@link android.R.attr#textOff}
attribute's value can be found in the {@link #SwitchCompat} array.
@attr name android:textOff
*/
public static int SwitchCompat_android_textOff = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#textOn}
attribute's value can be found in the {@link #SwitchCompat} array.
@attr name android:textOn
*/
public static int SwitchCompat_android_textOn = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#thumb}
attribute's value can be found in the {@link #SwitchCompat} array.
@attr name android:thumb
*/
public static int SwitchCompat_android_thumb = 2;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#showText}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:showText
*/
public static int SwitchCompat_showText = 9;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#splitTrack}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:splitTrack
*/
public static int SwitchCompat_splitTrack = 8;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#switchMinWidth}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:switchMinWidth
*/
public static int SwitchCompat_switchMinWidth = 6;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#switchPadding}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:switchPadding
*/
public static int SwitchCompat_switchPadding = 7;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#switchTextAppearance}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:switchTextAppearance
*/
public static int SwitchCompat_switchTextAppearance = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#thumbTextPadding}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:thumbTextPadding
*/
public static int SwitchCompat_thumbTextPadding = 4;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#track}
attribute's value can be found in the {@link #SwitchCompat} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:track
*/
public static int SwitchCompat_track = 3;
/** 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_textColor android:textColor}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_android_textSize android:textSize}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_android_textStyle android:textStyle}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_android_typeface android:typeface}</code></td><td></td></tr>
<tr><td><code>{@link #TextAppearance_textAllCaps com.cjj:textAllCaps}</code></td><td></td></tr>
</table>
@see #TextAppearance_android_textColor
@see #TextAppearance_android_textSize
@see #TextAppearance_android_textStyle
@see #TextAppearance_android_typeface
@see #TextAppearance_textAllCaps
*/
public static final int[] TextAppearance = {
0x01010095, 0x01010096, 0x01010097, 0x01010098,
0x7f010024
};
/**
<p>This symbol is the offset where the {@link android.R.attr#textColor}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:textColor
*/
public static int TextAppearance_android_textColor = 3;
/**
<p>This symbol is the offset where the {@link android.R.attr#textSize}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:textSize
*/
public static int TextAppearance_android_textSize = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#textStyle}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:textStyle
*/
public static int TextAppearance_android_textStyle = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#typeface}
attribute's value can be found in the {@link #TextAppearance} array.
@attr name android:typeface
*/
public static int TextAppearance_android_typeface = 1;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#textAllCaps}
attribute's value can be found in the {@link #TextAppearance} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
@attr name com.cjj:textAllCaps
*/
public static int TextAppearance_textAllCaps = 4;
/** Attributes that can be used with a Theme.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Theme_actionBarDivider com.cjj:actionBarDivider}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarItemBackground com.cjj:actionBarItemBackground}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarPopupTheme com.cjj:actionBarPopupTheme}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarSize com.cjj:actionBarSize}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarSplitStyle com.cjj:actionBarSplitStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarStyle com.cjj:actionBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTabBarStyle com.cjj:actionBarTabBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTabStyle com.cjj:actionBarTabStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTabTextStyle com.cjj:actionBarTabTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarTheme com.cjj:actionBarTheme}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionBarWidgetTheme com.cjj:actionBarWidgetTheme}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionButtonStyle com.cjj:actionButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionDropDownStyle com.cjj:actionDropDownStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionMenuTextAppearance com.cjj:actionMenuTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionMenuTextColor com.cjj:actionMenuTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeBackground com.cjj:actionModeBackground}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeCloseButtonStyle com.cjj:actionModeCloseButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeCloseDrawable com.cjj:actionModeCloseDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeCopyDrawable com.cjj:actionModeCopyDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeCutDrawable com.cjj:actionModeCutDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeFindDrawable com.cjj:actionModeFindDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModePasteDrawable com.cjj:actionModePasteDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModePopupWindowStyle com.cjj:actionModePopupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeSelectAllDrawable com.cjj:actionModeSelectAllDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeShareDrawable com.cjj:actionModeShareDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeSplitBackground com.cjj:actionModeSplitBackground}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeStyle com.cjj:actionModeStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionModeWebSearchDrawable com.cjj:actionModeWebSearchDrawable}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionOverflowButtonStyle com.cjj:actionOverflowButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_actionOverflowMenuStyle com.cjj:actionOverflowMenuStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_activityChooserViewStyle com.cjj:activityChooserViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_alertDialogButtonGroupStyle com.cjj:alertDialogButtonGroupStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_alertDialogCenterButtons com.cjj:alertDialogCenterButtons}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_alertDialogStyle com.cjj:alertDialogStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_alertDialogTheme com.cjj:alertDialogTheme}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_android_windowIsFloating android:windowIsFloating}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_autoCompleteTextViewStyle com.cjj:autoCompleteTextViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_borderlessButtonStyle com.cjj:borderlessButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_buttonBarButtonStyle com.cjj:buttonBarButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_buttonBarNegativeButtonStyle com.cjj:buttonBarNegativeButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_buttonBarNeutralButtonStyle com.cjj:buttonBarNeutralButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_buttonBarPositiveButtonStyle com.cjj:buttonBarPositiveButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_buttonBarStyle com.cjj:buttonBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_buttonStyle com.cjj:buttonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_buttonStyleSmall com.cjj:buttonStyleSmall}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_checkboxStyle com.cjj:checkboxStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_checkedTextViewStyle com.cjj:checkedTextViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_colorAccent com.cjj:colorAccent}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_colorButtonNormal com.cjj:colorButtonNormal}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_colorControlActivated com.cjj:colorControlActivated}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_colorControlHighlight com.cjj:colorControlHighlight}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_colorControlNormal com.cjj:colorControlNormal}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_colorPrimary com.cjj:colorPrimary}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_colorPrimaryDark com.cjj:colorPrimaryDark}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_colorSwitchThumbNormal com.cjj:colorSwitchThumbNormal}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_dialogPreferredPadding com.cjj:dialogPreferredPadding}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_dialogTheme com.cjj:dialogTheme}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_dividerHorizontal com.cjj:dividerHorizontal}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_dividerVertical com.cjj:dividerVertical}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_dropDownListViewStyle com.cjj:dropDownListViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.cjj:dropdownListPreferredItemHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_editTextBackground com.cjj:editTextBackground}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_editTextColor com.cjj:editTextColor}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_editTextStyle com.cjj:editTextStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_homeAsUpIndicator com.cjj:homeAsUpIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.cjj:listChoiceBackgroundIndicator}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listDividerAlertDialog com.cjj:listDividerAlertDialog}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listPopupWindowStyle com.cjj:listPopupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeight com.cjj:listPreferredItemHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeightLarge com.cjj:listPreferredItemHeightLarge}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listPreferredItemHeightSmall com.cjj:listPreferredItemHeightSmall}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listPreferredItemPaddingLeft com.cjj:listPreferredItemPaddingLeft}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_listPreferredItemPaddingRight com.cjj:listPreferredItemPaddingRight}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_panelBackground com.cjj:panelBackground}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_panelMenuListTheme com.cjj:panelMenuListTheme}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth com.cjj:panelMenuListWidth}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle com.cjj:popupMenuStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_popupWindowStyle com.cjj:popupWindowStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_radioButtonStyle com.cjj:radioButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_ratingBarStyle com.cjj:ratingBarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_searchViewStyle com.cjj:searchViewStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_selectableItemBackground com.cjj:selectableItemBackground}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_selectableItemBackgroundBorderless com.cjj:selectableItemBackgroundBorderless}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_spinnerDropDownItemStyle com.cjj:spinnerDropDownItemStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_spinnerStyle com.cjj:spinnerStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_switchStyle com.cjj:switchStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_textAppearanceLargePopupMenu com.cjj:textAppearanceLargePopupMenu}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_textAppearanceListItem com.cjj:textAppearanceListItem}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_textAppearanceListItemSmall com.cjj:textAppearanceListItemSmall}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_textAppearanceSearchResultSubtitle com.cjj:textAppearanceSearchResultSubtitle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_textAppearanceSearchResultTitle com.cjj:textAppearanceSearchResultTitle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_textAppearanceSmallPopupMenu com.cjj:textAppearanceSmallPopupMenu}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_textColorAlertDialogListItem com.cjj:textColorAlertDialogListItem}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_textColorSearchUrl com.cjj:textColorSearchUrl}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_toolbarNavigationButtonStyle com.cjj:toolbarNavigationButtonStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_toolbarStyle com.cjj:toolbarStyle}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_windowActionBar com.cjj:windowActionBar}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_windowActionBarOverlay com.cjj:windowActionBarOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_windowActionModeOverlay com.cjj:windowActionModeOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_windowFixedHeightMajor com.cjj:windowFixedHeightMajor}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_windowFixedHeightMinor com.cjj:windowFixedHeightMinor}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_windowFixedWidthMajor com.cjj:windowFixedWidthMajor}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_windowFixedWidthMinor com.cjj:windowFixedWidthMinor}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_windowMinWidthMajor com.cjj:windowMinWidthMajor}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_windowMinWidthMinor com.cjj:windowMinWidthMinor}</code></td><td></td></tr>
<tr><td><code>{@link #Theme_windowNoTitle com.cjj:windowNoTitle}</code></td><td></td></tr>
</table>
@see #Theme_actionBarDivider
@see #Theme_actionBarItemBackground
@see #Theme_actionBarPopupTheme
@see #Theme_actionBarSize
@see #Theme_actionBarSplitStyle
@see #Theme_actionBarStyle
@see #Theme_actionBarTabBarStyle
@see #Theme_actionBarTabStyle
@see #Theme_actionBarTabTextStyle
@see #Theme_actionBarTheme
@see #Theme_actionBarWidgetTheme
@see #Theme_actionButtonStyle
@see #Theme_actionDropDownStyle
@see #Theme_actionMenuTextAppearance
@see #Theme_actionMenuTextColor
@see #Theme_actionModeBackground
@see #Theme_actionModeCloseButtonStyle
@see #Theme_actionModeCloseDrawable
@see #Theme_actionModeCopyDrawable
@see #Theme_actionModeCutDrawable
@see #Theme_actionModeFindDrawable
@see #Theme_actionModePasteDrawable
@see #Theme_actionModePopupWindowStyle
@see #Theme_actionModeSelectAllDrawable
@see #Theme_actionModeShareDrawable
@see #Theme_actionModeSplitBackground
@see #Theme_actionModeStyle
@see #Theme_actionModeWebSearchDrawable
@see #Theme_actionOverflowButtonStyle
@see #Theme_actionOverflowMenuStyle
@see #Theme_activityChooserViewStyle
@see #Theme_alertDialogButtonGroupStyle
@see #Theme_alertDialogCenterButtons
@see #Theme_alertDialogStyle
@see #Theme_alertDialogTheme
@see #Theme_android_windowAnimationStyle
@see #Theme_android_windowIsFloating
@see #Theme_autoCompleteTextViewStyle
@see #Theme_borderlessButtonStyle
@see #Theme_buttonBarButtonStyle
@see #Theme_buttonBarNegativeButtonStyle
@see #Theme_buttonBarNeutralButtonStyle
@see #Theme_buttonBarPositiveButtonStyle
@see #Theme_buttonBarStyle
@see #Theme_buttonStyle
@see #Theme_buttonStyleSmall
@see #Theme_checkboxStyle
@see #Theme_checkedTextViewStyle
@see #Theme_colorAccent
@see #Theme_colorButtonNormal
@see #Theme_colorControlActivated
@see #Theme_colorControlHighlight
@see #Theme_colorControlNormal
@see #Theme_colorPrimary
@see #Theme_colorPrimaryDark
@see #Theme_colorSwitchThumbNormal
@see #Theme_dialogPreferredPadding
@see #Theme_dialogTheme
@see #Theme_dividerHorizontal
@see #Theme_dividerVertical
@see #Theme_dropDownListViewStyle
@see #Theme_dropdownListPreferredItemHeight
@see #Theme_editTextBackground
@see #Theme_editTextColor
@see #Theme_editTextStyle
@see #Theme_homeAsUpIndicator
@see #Theme_listChoiceBackgroundIndicator
@see #Theme_listDividerAlertDialog
@see #Theme_listPopupWindowStyle
@see #Theme_listPreferredItemHeight
@see #Theme_listPreferredItemHeightLarge
@see #Theme_listPreferredItemHeightSmall
@see #Theme_listPreferredItemPaddingLeft
@see #Theme_listPreferredItemPaddingRight
@see #Theme_panelBackground
@see #Theme_panelMenuListTheme
@see #Theme_panelMenuListWidth
@see #Theme_popupMenuStyle
@see #Theme_popupWindowStyle
@see #Theme_radioButtonStyle
@see #Theme_ratingBarStyle
@see #Theme_searchViewStyle
@see #Theme_selectableItemBackground
@see #Theme_selectableItemBackgroundBorderless
@see #Theme_spinnerDropDownItemStyle
@see #Theme_spinnerStyle
@see #Theme_switchStyle
@see #Theme_textAppearanceLargePopupMenu
@see #Theme_textAppearanceListItem
@see #Theme_textAppearanceListItemSmall
@see #Theme_textAppearanceSearchResultSubtitle
@see #Theme_textAppearanceSearchResultTitle
@see #Theme_textAppearanceSmallPopupMenu
@see #Theme_textColorAlertDialogListItem
@see #Theme_textColorSearchUrl
@see #Theme_toolbarNavigationButtonStyle
@see #Theme_toolbarStyle
@see #Theme_windowActionBar
@see #Theme_windowActionBarOverlay
@see #Theme_windowActionModeOverlay
@see #Theme_windowFixedHeightMajor
@see #Theme_windowFixedHeightMinor
@see #Theme_windowFixedWidthMajor
@see #Theme_windowFixedWidthMinor
@see #Theme_windowMinWidthMajor
@see #Theme_windowMinWidthMinor
@see #Theme_windowNoTitle
*/
public static final int[] Theme = {
0x01010057, 0x010100ae, 0x7f01006e, 0x7f01006f,
0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073,
0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077,
0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b,
0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f,
0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083,
0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087,
0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b,
0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f,
0x7f010090, 0x7f010091, 0x7f010092, 0x7f010093,
0x7f010094, 0x7f010095, 0x7f010096, 0x7f010097,
0x7f010098, 0x7f010099, 0x7f01009a, 0x7f01009b,
0x7f01009c, 0x7f01009d, 0x7f01009e, 0x7f01009f,
0x7f0100a0, 0x7f0100a1, 0x7f0100a2, 0x7f0100a3,
0x7f0100a4, 0x7f0100a5, 0x7f0100a6, 0x7f0100a7,
0x7f0100a8, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab,
0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af,
0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3,
0x7f0100b4, 0x7f0100b5, 0x7f0100b6, 0x7f0100b7,
0x7f0100b8, 0x7f0100b9, 0x7f0100ba, 0x7f0100bb,
0x7f0100bc, 0x7f0100bd, 0x7f0100be, 0x7f0100bf,
0x7f0100c0, 0x7f0100c1, 0x7f0100c2, 0x7f0100c3,
0x7f0100c4, 0x7f0100c5, 0x7f0100c6, 0x7f0100c7,
0x7f0100c8, 0x7f0100c9, 0x7f0100ca, 0x7f0100cb,
0x7f0100cc, 0x7f0100cd, 0x7f0100ce, 0x7f0100cf,
0x7f0100d0, 0x7f0100d1, 0x7f0100d2, 0x7f0100d3,
0x7f0100d4, 0x7f0100d5, 0x7f0100d6
};
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarDivider}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionBarDivider
*/
public static int Theme_actionBarDivider = 23;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarItemBackground}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionBarItemBackground
*/
public static int Theme_actionBarItemBackground = 24;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarPopupTheme}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionBarPopupTheme
*/
public static int Theme_actionBarPopupTheme = 17;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarSize}
attribute's value can be found in the {@link #Theme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>May be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>wrap_content</code></td><td>0</td><td></td></tr>
</table>
@attr name com.cjj:actionBarSize
*/
public static int Theme_actionBarSize = 22;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarSplitStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionBarSplitStyle
*/
public static int Theme_actionBarSplitStyle = 19;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionBarStyle
*/
public static int Theme_actionBarStyle = 18;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarTabBarStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionBarTabBarStyle
*/
public static int Theme_actionBarTabBarStyle = 13;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarTabStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionBarTabStyle
*/
public static int Theme_actionBarTabStyle = 12;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarTabTextStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionBarTabTextStyle
*/
public static int Theme_actionBarTabTextStyle = 14;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarTheme}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionBarTheme
*/
public static int Theme_actionBarTheme = 20;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionBarWidgetTheme}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionBarWidgetTheme
*/
public static int Theme_actionBarWidgetTheme = 21;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionButtonStyle
*/
public static int Theme_actionButtonStyle = 49;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionDropDownStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionDropDownStyle
*/
public static int Theme_actionDropDownStyle = 45;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionMenuTextAppearance}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionMenuTextAppearance
*/
public static int Theme_actionMenuTextAppearance = 25;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionMenuTextColor}
attribute's value can be found in the {@link #Theme} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name com.cjj:actionMenuTextColor
*/
public static int Theme_actionMenuTextColor = 26;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeBackground}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeBackground
*/
public static int Theme_actionModeBackground = 29;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeCloseButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeCloseButtonStyle
*/
public static int Theme_actionModeCloseButtonStyle = 28;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeCloseDrawable}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeCloseDrawable
*/
public static int Theme_actionModeCloseDrawable = 31;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeCopyDrawable}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeCopyDrawable
*/
public static int Theme_actionModeCopyDrawable = 33;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeCutDrawable}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeCutDrawable
*/
public static int Theme_actionModeCutDrawable = 32;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeFindDrawable}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeFindDrawable
*/
public static int Theme_actionModeFindDrawable = 37;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModePasteDrawable}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModePasteDrawable
*/
public static int Theme_actionModePasteDrawable = 34;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModePopupWindowStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModePopupWindowStyle
*/
public static int Theme_actionModePopupWindowStyle = 39;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeSelectAllDrawable}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeSelectAllDrawable
*/
public static int Theme_actionModeSelectAllDrawable = 35;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeShareDrawable}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeShareDrawable
*/
public static int Theme_actionModeShareDrawable = 36;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeSplitBackground}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeSplitBackground
*/
public static int Theme_actionModeSplitBackground = 30;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeStyle
*/
public static int Theme_actionModeStyle = 27;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionModeWebSearchDrawable}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionModeWebSearchDrawable
*/
public static int Theme_actionModeWebSearchDrawable = 38;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionOverflowButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionOverflowButtonStyle
*/
public static int Theme_actionOverflowButtonStyle = 15;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#actionOverflowMenuStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:actionOverflowMenuStyle
*/
public static int Theme_actionOverflowMenuStyle = 16;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#activityChooserViewStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:activityChooserViewStyle
*/
public static int Theme_activityChooserViewStyle = 57;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#alertDialogButtonGroupStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:alertDialogButtonGroupStyle
*/
public static int Theme_alertDialogButtonGroupStyle = 90;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#alertDialogCenterButtons}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:alertDialogCenterButtons
*/
public static int Theme_alertDialogCenterButtons = 91;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#alertDialogStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:alertDialogStyle
*/
public static int Theme_alertDialogStyle = 89;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#alertDialogTheme}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:alertDialogTheme
*/
public static int Theme_alertDialogTheme = 92;
/**
<p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle}
attribute's value can be found in the {@link #Theme} array.
@attr name android:windowAnimationStyle
*/
public static int Theme_android_windowAnimationStyle = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#windowIsFloating}
attribute's value can be found in the {@link #Theme} array.
@attr name android:windowIsFloating
*/
public static int Theme_android_windowIsFloating = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#autoCompleteTextViewStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:autoCompleteTextViewStyle
*/
public static int Theme_autoCompleteTextViewStyle = 97;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#borderlessButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:borderlessButtonStyle
*/
public static int Theme_borderlessButtonStyle = 54;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#buttonBarButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:buttonBarButtonStyle
*/
public static int Theme_buttonBarButtonStyle = 51;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#buttonBarNegativeButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:buttonBarNegativeButtonStyle
*/
public static int Theme_buttonBarNegativeButtonStyle = 95;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#buttonBarNeutralButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:buttonBarNeutralButtonStyle
*/
public static int Theme_buttonBarNeutralButtonStyle = 96;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#buttonBarPositiveButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:buttonBarPositiveButtonStyle
*/
public static int Theme_buttonBarPositiveButtonStyle = 94;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#buttonBarStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:buttonBarStyle
*/
public static int Theme_buttonBarStyle = 50;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#buttonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:buttonStyle
*/
public static int Theme_buttonStyle = 98;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#buttonStyleSmall}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:buttonStyleSmall
*/
public static int Theme_buttonStyleSmall = 99;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#checkboxStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:checkboxStyle
*/
public static int Theme_checkboxStyle = 100;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#checkedTextViewStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:checkedTextViewStyle
*/
public static int Theme_checkedTextViewStyle = 101;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#colorAccent}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:colorAccent
*/
public static int Theme_colorAccent = 83;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#colorButtonNormal}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:colorButtonNormal
*/
public static int Theme_colorButtonNormal = 87;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#colorControlActivated}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:colorControlActivated
*/
public static int Theme_colorControlActivated = 85;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#colorControlHighlight}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:colorControlHighlight
*/
public static int Theme_colorControlHighlight = 86;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#colorControlNormal}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:colorControlNormal
*/
public static int Theme_colorControlNormal = 84;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#colorPrimary}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:colorPrimary
*/
public static int Theme_colorPrimary = 81;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#colorPrimaryDark}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:colorPrimaryDark
*/
public static int Theme_colorPrimaryDark = 82;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#colorSwitchThumbNormal}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:colorSwitchThumbNormal
*/
public static int Theme_colorSwitchThumbNormal = 88;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#dialogPreferredPadding}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:dialogPreferredPadding
*/
public static int Theme_dialogPreferredPadding = 43;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#dialogTheme}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:dialogTheme
*/
public static int Theme_dialogTheme = 42;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#dividerHorizontal}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:dividerHorizontal
*/
public static int Theme_dividerHorizontal = 56;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#dividerVertical}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:dividerVertical
*/
public static int Theme_dividerVertical = 55;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#dropDownListViewStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:dropDownListViewStyle
*/
public static int Theme_dropDownListViewStyle = 73;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#dropdownListPreferredItemHeight}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:dropdownListPreferredItemHeight
*/
public static int Theme_dropdownListPreferredItemHeight = 46;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#editTextBackground}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:editTextBackground
*/
public static int Theme_editTextBackground = 63;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#editTextColor}
attribute's value can be found in the {@link #Theme} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name com.cjj:editTextColor
*/
public static int Theme_editTextColor = 62;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#editTextStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:editTextStyle
*/
public static int Theme_editTextStyle = 102;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#homeAsUpIndicator}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:homeAsUpIndicator
*/
public static int Theme_homeAsUpIndicator = 48;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#listChoiceBackgroundIndicator}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:listChoiceBackgroundIndicator
*/
public static int Theme_listChoiceBackgroundIndicator = 80;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#listDividerAlertDialog}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:listDividerAlertDialog
*/
public static int Theme_listDividerAlertDialog = 44;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#listPopupWindowStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:listPopupWindowStyle
*/
public static int Theme_listPopupWindowStyle = 74;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#listPreferredItemHeight}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:listPreferredItemHeight
*/
public static int Theme_listPreferredItemHeight = 68;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#listPreferredItemHeightLarge}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:listPreferredItemHeightLarge
*/
public static int Theme_listPreferredItemHeightLarge = 70;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#listPreferredItemHeightSmall}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:listPreferredItemHeightSmall
*/
public static int Theme_listPreferredItemHeightSmall = 69;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#listPreferredItemPaddingLeft}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:listPreferredItemPaddingLeft
*/
public static int Theme_listPreferredItemPaddingLeft = 71;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#listPreferredItemPaddingRight}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:listPreferredItemPaddingRight
*/
public static int Theme_listPreferredItemPaddingRight = 72;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#panelBackground}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:panelBackground
*/
public static int Theme_panelBackground = 77;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#panelMenuListTheme}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:panelMenuListTheme
*/
public static int Theme_panelMenuListTheme = 79;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#panelMenuListWidth}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:panelMenuListWidth
*/
public static int Theme_panelMenuListWidth = 78;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#popupMenuStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:popupMenuStyle
*/
public static int Theme_popupMenuStyle = 60;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#popupWindowStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:popupWindowStyle
*/
public static int Theme_popupWindowStyle = 61;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#radioButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:radioButtonStyle
*/
public static int Theme_radioButtonStyle = 103;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#ratingBarStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:ratingBarStyle
*/
public static int Theme_ratingBarStyle = 104;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#searchViewStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:searchViewStyle
*/
public static int Theme_searchViewStyle = 67;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#selectableItemBackground}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:selectableItemBackground
*/
public static int Theme_selectableItemBackground = 52;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#selectableItemBackgroundBorderless}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:selectableItemBackgroundBorderless
*/
public static int Theme_selectableItemBackgroundBorderless = 53;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#spinnerDropDownItemStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:spinnerDropDownItemStyle
*/
public static int Theme_spinnerDropDownItemStyle = 47;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#spinnerStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:spinnerStyle
*/
public static int Theme_spinnerStyle = 105;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#switchStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:switchStyle
*/
public static int Theme_switchStyle = 106;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#textAppearanceLargePopupMenu}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:textAppearanceLargePopupMenu
*/
public static int Theme_textAppearanceLargePopupMenu = 40;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#textAppearanceListItem}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:textAppearanceListItem
*/
public static int Theme_textAppearanceListItem = 75;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#textAppearanceListItemSmall}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:textAppearanceListItemSmall
*/
public static int Theme_textAppearanceListItemSmall = 76;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#textAppearanceSearchResultSubtitle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:textAppearanceSearchResultSubtitle
*/
public static int Theme_textAppearanceSearchResultSubtitle = 65;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#textAppearanceSearchResultTitle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:textAppearanceSearchResultTitle
*/
public static int Theme_textAppearanceSearchResultTitle = 64;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#textAppearanceSmallPopupMenu}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:textAppearanceSmallPopupMenu
*/
public static int Theme_textAppearanceSmallPopupMenu = 41;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#textColorAlertDialogListItem}
attribute's value can be found in the {@link #Theme} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name com.cjj:textColorAlertDialogListItem
*/
public static int Theme_textColorAlertDialogListItem = 93;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#textColorSearchUrl}
attribute's value can be found in the {@link #Theme} array.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
@attr name com.cjj:textColorSearchUrl
*/
public static int Theme_textColorSearchUrl = 66;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#toolbarNavigationButtonStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:toolbarNavigationButtonStyle
*/
public static int Theme_toolbarNavigationButtonStyle = 59;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#toolbarStyle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:toolbarStyle
*/
public static int Theme_toolbarStyle = 58;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#windowActionBar}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:windowActionBar
*/
public static int Theme_windowActionBar = 2;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#windowActionBarOverlay}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:windowActionBarOverlay
*/
public static int Theme_windowActionBarOverlay = 4;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#windowActionModeOverlay}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:windowActionModeOverlay
*/
public static int Theme_windowActionModeOverlay = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#windowFixedHeightMajor}
attribute's value can be found in the {@link #Theme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:windowFixedHeightMajor
*/
public static int Theme_windowFixedHeightMajor = 9;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#windowFixedHeightMinor}
attribute's value can be found in the {@link #Theme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:windowFixedHeightMinor
*/
public static int Theme_windowFixedHeightMinor = 7;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#windowFixedWidthMajor}
attribute's value can be found in the {@link #Theme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:windowFixedWidthMajor
*/
public static int Theme_windowFixedWidthMajor = 6;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#windowFixedWidthMinor}
attribute's value can be found in the {@link #Theme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:windowFixedWidthMinor
*/
public static int Theme_windowFixedWidthMinor = 8;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#windowMinWidthMajor}
attribute's value can be found in the {@link #Theme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:windowMinWidthMajor
*/
public static int Theme_windowMinWidthMajor = 10;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#windowMinWidthMinor}
attribute's value can be found in the {@link #Theme} array.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:windowMinWidthMinor
*/
public static int Theme_windowMinWidthMinor = 11;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#windowNoTitle}
attribute's value can be found in the {@link #Theme} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:windowNoTitle
*/
public static int Theme_windowNoTitle = 3;
/** Attributes that can be used with a Toolbar.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Toolbar_android_gravity android:gravity}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_android_minHeight android:minHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_collapseContentDescription com.cjj:collapseContentDescription}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_collapseIcon com.cjj:collapseIcon}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetEnd com.cjj:contentInsetEnd}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetLeft com.cjj:contentInsetLeft}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetRight com.cjj:contentInsetRight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_contentInsetStart com.cjj:contentInsetStart}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_maxButtonHeight com.cjj:maxButtonHeight}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_navigationContentDescription com.cjj:navigationContentDescription}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_navigationIcon com.cjj:navigationIcon}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_popupTheme com.cjj:popupTheme}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_subtitle com.cjj:subtitle}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_subtitleTextAppearance com.cjj:subtitleTextAppearance}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_title com.cjj:title}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginBottom com.cjj:titleMarginBottom}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginEnd com.cjj:titleMarginEnd}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginStart com.cjj:titleMarginStart}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMarginTop com.cjj:titleMarginTop}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleMargins com.cjj:titleMargins}</code></td><td></td></tr>
<tr><td><code>{@link #Toolbar_titleTextAppearance com.cjj:titleTextAppearance}</code></td><td></td></tr>
</table>
@see #Toolbar_android_gravity
@see #Toolbar_android_minHeight
@see #Toolbar_collapseContentDescription
@see #Toolbar_collapseIcon
@see #Toolbar_contentInsetEnd
@see #Toolbar_contentInsetLeft
@see #Toolbar_contentInsetRight
@see #Toolbar_contentInsetStart
@see #Toolbar_maxButtonHeight
@see #Toolbar_navigationContentDescription
@see #Toolbar_navigationIcon
@see #Toolbar_popupTheme
@see #Toolbar_subtitle
@see #Toolbar_subtitleTextAppearance
@see #Toolbar_title
@see #Toolbar_titleMarginBottom
@see #Toolbar_titleMarginEnd
@see #Toolbar_titleMarginStart
@see #Toolbar_titleMarginTop
@see #Toolbar_titleMargins
@see #Toolbar_titleTextAppearance
*/
public static final int[] Toolbar = {
0x010100af, 0x01010140, 0x7f010003, 0x7f010006,
0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019,
0x7f01001b, 0x7f0100d7, 0x7f0100d8, 0x7f0100d9,
0x7f0100da, 0x7f0100db, 0x7f0100dc, 0x7f0100dd,
0x7f0100de, 0x7f0100df, 0x7f0100e0, 0x7f0100e1,
0x7f0100e2
};
/**
<p>This symbol is the offset where the {@link android.R.attr#gravity}
attribute's value can be found in the {@link #Toolbar} array.
@attr name android:gravity
*/
public static int Toolbar_android_gravity = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#minHeight}
attribute's value can be found in the {@link #Toolbar} array.
@attr name android:minHeight
*/
public static int Toolbar_android_minHeight = 1;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#collapseContentDescription}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:collapseContentDescription
*/
public static int Toolbar_collapseContentDescription = 18;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#collapseIcon}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:collapseIcon
*/
public static int Toolbar_collapseIcon = 17;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#contentInsetEnd}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:contentInsetEnd
*/
public static int Toolbar_contentInsetEnd = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#contentInsetLeft}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:contentInsetLeft
*/
public static int Toolbar_contentInsetLeft = 6;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#contentInsetRight}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:contentInsetRight
*/
public static int Toolbar_contentInsetRight = 7;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#contentInsetStart}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:contentInsetStart
*/
public static int Toolbar_contentInsetStart = 4;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#maxButtonHeight}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:maxButtonHeight
*/
public static int Toolbar_maxButtonHeight = 16;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#navigationContentDescription}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:navigationContentDescription
*/
public static int Toolbar_navigationContentDescription = 20;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#navigationIcon}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:navigationIcon
*/
public static int Toolbar_navigationIcon = 19;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#popupTheme}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:popupTheme
*/
public static int Toolbar_popupTheme = 8;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#subtitle}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:subtitle
*/
public static int Toolbar_subtitle = 3;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#subtitleTextAppearance}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:subtitleTextAppearance
*/
public static int Toolbar_subtitleTextAppearance = 10;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#title}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:title
*/
public static int Toolbar_title = 2;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#titleMarginBottom}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:titleMarginBottom
*/
public static int Toolbar_titleMarginBottom = 15;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#titleMarginEnd}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:titleMarginEnd
*/
public static int Toolbar_titleMarginEnd = 13;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#titleMarginStart}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:titleMarginStart
*/
public static int Toolbar_titleMarginStart = 12;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#titleMarginTop}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:titleMarginTop
*/
public static int Toolbar_titleMarginTop = 14;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#titleMargins}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:titleMargins
*/
public static int Toolbar_titleMargins = 11;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#titleTextAppearance}
attribute's value can be found in the {@link #Toolbar} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:titleTextAppearance
*/
public static int Toolbar_titleTextAppearance = 9;
/** Attributes that can be used with a View.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td></td></tr>
<tr><td><code>{@link #View_android_theme android:theme}</code></td><td></td></tr>
<tr><td><code>{@link #View_backgroundTint com.cjj:backgroundTint}</code></td><td></td></tr>
<tr><td><code>{@link #View_backgroundTintMode com.cjj:backgroundTintMode}</code></td><td></td></tr>
<tr><td><code>{@link #View_paddingEnd com.cjj:paddingEnd}</code></td><td></td></tr>
<tr><td><code>{@link #View_paddingStart com.cjj:paddingStart}</code></td><td></td></tr>
<tr><td><code>{@link #View_theme com.cjj:theme}</code></td><td></td></tr>
</table>
@see #View_android_focusable
@see #View_android_theme
@see #View_backgroundTint
@see #View_backgroundTintMode
@see #View_paddingEnd
@see #View_paddingStart
@see #View_theme
*/
public static final int[] View = {
0x01010000, 0x010100da, 0x7f0100e3, 0x7f0100e4,
0x7f0100e5, 0x7f0100e6, 0x7f0100e7
};
/**
<p>This symbol is the offset where the {@link android.R.attr#focusable}
attribute's value can be found in the {@link #View} array.
@attr name android:focusable
*/
public static int View_android_focusable = 1;
/**
<p>This symbol is the offset where the {@link android.R.attr#theme}
attribute's value can be found in the {@link #View} array.
@attr name android:theme
*/
public static int View_android_theme = 0;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#backgroundTint}
attribute's value can be found in the {@link #View} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:backgroundTint
*/
public static int View_backgroundTint = 5;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#backgroundTintMode}
attribute's value can be found in the {@link #View} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>src_over</code></td><td>3</td><td></td></tr>
<tr><td><code>src_in</code></td><td>5</td><td></td></tr>
<tr><td><code>src_atop</code></td><td>9</td><td></td></tr>
<tr><td><code>multiply</code></td><td>14</td><td></td></tr>
<tr><td><code>screen</code></td><td>15</td><td></td></tr>
</table>
@attr name com.cjj:backgroundTintMode
*/
public static int View_backgroundTintMode = 6;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#paddingEnd}
attribute's value can be found in the {@link #View} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:paddingEnd
*/
public static int View_paddingEnd = 3;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#paddingStart}
attribute's value can be found in the {@link #View} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.cjj:paddingStart
*/
public static int View_paddingStart = 2;
/**
<p>This symbol is the offset where the {@link com.cjj.R.attr#theme}
attribute's value can be found in the {@link #View} array.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
@attr name com.cjj:theme
*/
public static int View_theme = 4;
/** Attributes that can be used with a ViewStubCompat.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ViewStubCompat_android_id android:id}</code></td><td></td></tr>
<tr><td><code>{@link #ViewStubCompat_android_inflatedId android:inflatedId}</code></td><td></td></tr>
<tr><td><code>{@link #ViewStubCompat_android_layout android:layout}</code></td><td></td></tr>
</table>
@see #ViewStubCompat_android_id
@see #ViewStubCompat_android_inflatedId
@see #ViewStubCompat_android_layout
*/
public static final int[] ViewStubCompat = {
0x010100d0, 0x010100f2, 0x010100f3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#id}
attribute's value can be found in the {@link #ViewStubCompat} array.
@attr name android:id
*/
public static int ViewStubCompat_android_id = 0;
/**
<p>This symbol is the offset where the {@link android.R.attr#inflatedId}
attribute's value can be found in the {@link #ViewStubCompat} array.
@attr name android:inflatedId
*/
public static int ViewStubCompat_android_inflatedId = 2;
/**
<p>This symbol is the offset where the {@link android.R.attr#layout}
attribute's value can be found in the {@link #ViewStubCompat} array.
@attr name android:layout
*/
public static int ViewStubCompat_android_layout = 1;
};
}
| 160,622 |
1,863 |
<gh_stars>1000+
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of NVIDIA CORPORATION nor the names of its
// contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.
#ifndef PXTASK_GPUDISPATCHER_H
#define PXTASK_GPUDISPATCHER_H
#include "task/PxTask.h"
#include "task/PxTaskDefine.h"
#include "task/PxGpuTask.h"
#include "task/PxTaskManager.h"
#include "task/PxGpuDispatcher.h"
#include "foundation/PxProfiler.h"
#include "PsUserAllocated.h"
#include "PsThread.h"
#include "PsAtomic.h"
#include "PsMutex.h"
#include "PsSync.h"
#include "PsArray.h"
#include <cuda.h>
namespace physx {
typedef uint16_t EventID;
void releaseGpuDispatcher(PxGpuDispatcher&);
class KernelWrangler;
class BlockingWaitThread;
class FanoutTask;
class LaunchTask;
class BlockTask;
class PxGpuWorkerThread;
class GpuDispatcherImpl : public PxGpuDispatcher, public shdfnd::UserAllocated
{
public:
GpuDispatcherImpl(PxErrorCallback& errorCallback, PxCudaContextManager& ctx);
virtual ~GpuDispatcherImpl();
void start();
void startSimulation();
void startGroup();
void submitTask(PxTask& task);
void finishGroup();
void addCompletionPrereq(PxBaseTask& task);
bool failureDetected() const;
void forceFailureMode();
void stopSimulation();
void launchCopyKernel(PxGpuCopyDesc* desc, uint32_t count, CUstream stream);
PxBaseTask& getPreLaunchTask();
void addPreLaunchDependent(PxBaseTask& dependent);
PxBaseTask& getPostLaunchTask();
void addPostLaunchDependent(PxBaseTask& dependent);
PxCudaContextManager* getCudaContextManager();
PxGpuWorkerThread* mDispatcher;
BlockingWaitThread* mBlockingThread;
LaunchTask* mLaunchTask; // predecessor of tasks launching kernels
BlockTask* mBlockTask; // continuation of tasks launching kernels
FanoutTask* mSyncTask; // predecessor of tasks waiting for cuda context synchronize
};
class JobQueue
{
PX_NOCOPY(JobQueue)
public:
JobQueue() : taskarray(PX_DEBUG_EXP("PxTask*")) {}
void push(PxTask* t)
{
access.lock();
taskarray.pushBack(t);
access.unlock();
}
PxTask* popBack()
{
access.lock();
PxTask* t = NULL;
if (taskarray.size())
{
t = taskarray.popBack();
}
access.unlock();
return t;
}
uint32_t size()
{
return taskarray.size();
}
bool empty()
{
return taskarray.size() == 0;
}
private:
shdfnd::Array<PxTask*> taskarray;
shdfnd::Mutex access;
};
class EventPool
{
PX_NOCOPY(EventPool)
public:
EventPool(uint32_t inflags) : flags(inflags), evarray(PX_DEBUG_EXP("CUevent")) {}
void add(CUevent ev)
{
access.lock();
evarray.pushBack(ev);
access.unlock();
}
CUevent get()
{
access.lock();
CUevent ev;
if (evarray.size())
{
ev = evarray.popBack();
}
else
{
cuEventCreate(&ev, flags);
}
access.unlock();
return ev;
}
bool empty() const
{
return evarray.size() == 0;
}
void clear()
{
access.lock();
for (uint32_t i = 0; i < evarray.size(); i++)
{
cuEventDestroy(evarray[i]);
}
access.unlock();
}
private:
uint32_t flags;
shdfnd::Array<CUevent> evarray;
shdfnd::Mutex access;
};
class StreamCache
{
public:
StreamCache() : sarray(PX_DEBUG_EXP("CUstream")), freeIndices(PX_DEBUG_EXP("freeIndices"))
{
}
CUstream get(uint32_t s)
{
PX_ASSERT(s);
return sarray[ s - 1 ];
}
void push(uint32_t s)
{
freeIndices.pushBack(s);
}
uint32_t popBack()
{
if (freeIndices.size())
{
return freeIndices.popBack();
}
else
{
CUstream s;
cuStreamCreate(&s, 0);
sarray.pushBack(s);
return sarray.size();
}
}
void reset()
{
freeIndices.resize(sarray.size());
for (uint32_t i = 0 ; i < sarray.size() ; i++)
{
freeIndices[i] = i + 1;
}
}
bool empty()
{
return freeIndices.size() == 0;
}
private:
shdfnd::Array<CUstream> sarray;
shdfnd::Array<uint32_t> freeIndices;
};
class KernelBar
{
public:
KernelBar()
{
reset();
}
void reset()
{
start = 0xffffffff;
stop = 0;
}
uint32_t start;
uint32_t stop;
};
const int SIZE_COMPLETION_RING = 1024;
struct CudaBatch
{
CUevent blockingEvent;
CUstream blockingStream; // sync on stream instead of event if lsb is zero (faster)
PxBaseTask* continuationTask;
};
struct ReadyTask
{
PxGpuTask* task;
uint32_t iteration;
};
class PxGpuWorkerThread : public shdfnd::Thread
{
PX_NOCOPY(PxGpuWorkerThread)
public:
PxGpuWorkerThread();
~PxGpuWorkerThread();
void setCudaContext(PxCudaContextManager& ctx);
/* API to TaskManager */
void startSimulation();
void stopSimulation();
/* API to GPU tasks */
void addCompletionPrereq(PxBaseTask& task);
/* PxGpuTask execution thread */
void execute();
void pollSubmitted(shdfnd::Array<ReadyTask> *ready);
void processActiveTasks();
void flushBatch(CUevent endEvent, CUstream, PxBaseTask* task);
void launchCopyKernel(PxGpuCopyDesc* desc, uint32_t count, CUstream stream);
/* Blocking wait thread */
void blockingWaitFunc();
StreamCache mCachedStreams;
shdfnd::Array<PxBaseTask*> mCompletionTasks;
JobQueue mSubmittedTaskList;
volatile int mActiveGroups;
shdfnd::Sync mInputReady;
shdfnd::Sync mRecordEventQueued;
PxCudaContextManager* mCtxMgr;
bool mNewTasksSubmitted;
bool mFailureDetected;
bool mUsingConcurrentStreams;
CudaBatch mCompletionRing[ SIZE_COMPLETION_RING ];
volatile int mCompletionRingPush;
volatile int mCompletionRingPop;
EventPool mCachedBlockingEvents;
EventPool mCachedNonBlockingEvents;
volatile int mCountActiveScenes;
uint32_t* mSmStartTimes;
uint32_t mSmClockFreq;
shdfnd::Array<ReadyTask> mReady[ PxGpuTaskHint::NUM_GPU_TASK_HINTS ];
KernelWrangler* mUtilKernelWrapper;
CUevent mStartEvent;
shdfnd::Mutex mMutex;
};
class BlockingWaitThread : public shdfnd::Thread
{
public:
BlockingWaitThread(PxGpuWorkerThread& worker) : mWorker(worker) {}
~BlockingWaitThread() {}
void execute();
protected:
PxGpuWorkerThread& mWorker;
private:
BlockingWaitThread& operator=(const BlockingWaitThread&);
};
#define GD_CHECK_CALL(call) { CUresult ret = call; \
if( CUDA_SUCCESS != ret ) { mFailureDetected=true; PX_ASSERT(!ret); } }
}
#endif // PXTASK_GPUDISPATCHER_H
| 3,120 |
482 |
<gh_stars>100-1000
// License: BSD 2 Clause
// Copyright (C) 2010, Google Inc. All rights reserved.
// Copyright (C) 2015+, The LabSound Authors. All rights reserved.
#include "LabSound/core/AudioNodeInput.h"
#include "LabSound/core/AudioBus.h"
#include "LabSound/core/AudioContext.h"
#include "LabSound/core/AudioNode.h"
#include "LabSound/core/AudioNodeOutput.h"
#include "LabSound/core/Mixing.h"
#include "LabSound/extended/AudioContextLock.h"
#include "internal/Assertions.h"
#include <algorithm>
#include <mutex>
using namespace std;
namespace lab
{
AudioNodeInput::AudioNodeInput(AudioNode * node, int processingSizeInFrames)
: AudioSummingJunction()
, m_destinationNode(node)
{
// Set to mono by default.
m_internalSummingBus = std::unique_ptr<AudioBus>(new AudioBus(Channels::Mono, processingSizeInFrames));
}
AudioNodeInput::~AudioNodeInput()
{
}
void AudioNodeInput::connect(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> junction, std::shared_ptr<AudioNodeOutput> toOutput)
{
if (!junction || !toOutput || !junction->destinationNode())
return;
// return if input is already connected to this output.
if (junction->isConnected(toOutput)) return;
toOutput->addInput(g, junction);
junction->junctionConnectOutput(toOutput);
}
void AudioNodeInput::disconnect(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> junction, std::shared_ptr<AudioNodeOutput> toOutput)
{
ASSERT(g.context());
if (!junction || !junction->destinationNode() || !toOutput)
return;
if (junction->isConnected(toOutput))
{
junction->junctionDisconnectOutput(toOutput);
toOutput->removeInput(g, junction);
}
}
void AudioNodeInput::disconnectAll(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> fromInput)
{
ASSERT(g.context());
if (!fromInput || !fromInput->destinationNode())
return;
for (auto i : fromInput->m_connectedOutputs)
{
auto o = i.lock();
if (o)
{
fromInput->junctionDisconnectOutput(o);
o->removeInput(g, fromInput);
}
}
}
void AudioNodeInput::updateInternalBus(ContextRenderLock & r)
{
int numberOfInputChannels = numberOfChannels(r);
if (numberOfInputChannels == m_internalSummingBus->numberOfChannels())
return;
m_internalSummingBus = std::unique_ptr<AudioBus>(new AudioBus(numberOfInputChannels, AudioNode::ProcessingSizeInFrames));
}
int AudioNodeInput::numberOfChannels(ContextRenderLock & r) const
{
ChannelCountMode mode = destinationNode()->channelCountMode();
if (mode == ChannelCountMode::Explicit)
{
return destinationNode()->channelCount();
}
// Find the number of channels of the connection with the largest number of channels.
int maxChannels = 1; // one channel is the minimum allowed
int c = numberOfRenderingConnections(r);
for (int i = 0; i < c; ++i)
{
auto output = renderingOutput(r, i);
if (output)
{
int c = output->bus(r)->numberOfChannels();
if (c > maxChannels)
maxChannels = c;
}
}
if (mode == ChannelCountMode::ClampedMax)
{
maxChannels = min(maxChannels, destinationNode()->channelCount());
}
return maxChannels;
}
AudioBus * AudioNodeInput::bus(ContextRenderLock & r)
{
// Handle single connection specially to allow for in-place processing.
// note: The webkit sources check for max, but I can't see how that's correct
// @tofix - did I miss part of the merge?
if (numberOfRenderingConnections(r) == 1) // && node()->channelCountMode() == ChannelCountMode::Max)
{
std::shared_ptr<AudioNodeOutput> output = renderingOutput(r, 0);
if (output)
{
return output->bus(r);
}
}
// Multiple connections case (or no connections).
return m_internalSummingBus.get();
}
AudioBus * AudioNodeInput::pull(ContextRenderLock & r, AudioBus * inPlaceBus, int bufferSize)
{
updateRenderingState(r);
m_destinationNode->checkNumberOfChannelsForInput(r, this);
size_t num_connections = numberOfRenderingConnections(r);
// Handle single connection case.
if (num_connections == 1)
{
// If this input is simply passing data through, then immediately delegate the pull request to it.
auto output = renderingOutput(r, 0);
if (output)
{
return output->pull(r, inPlaceBus, bufferSize);
}
num_connections = 0; // if there's a single input, but it has no output; treat this input as silent.
}
if (num_connections == 0)
{
// Generate silence if we're not connected to anything, and return the silent bus
/// @TODO a possible optimization is to flag silence and propagate it to consumers of this input.
m_internalSummingBus->zero();
return m_internalSummingBus.get();
}
// multiple connections
m_internalSummingBus->zero();
for (int i = 0; i < num_connections; ++i)
{
auto output = renderingOutput(r, i);
if (output)
{
// Render audio from this output.
AudioBus * connectionBus = output->pull(r, 0, bufferSize);
// Sum, with unity-gain.
m_internalSummingBus->sumFrom(*connectionBus);
}
}
return m_internalSummingBus.get();
}
} // namespace lab
| 2,046 |
23,464 |
#import "GeneratedPluginRegistrant.h"
| 12 |
2,707 |
<reponame>ronaldocan/jetlinks-community
package org.jetlinks.community.notify.voice.aliyun;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.hswebframework.web.exception.BusinessException;
import org.hswebframework.web.logger.ReactiveLogger;
import org.jetlinks.community.notify.*;
import org.jetlinks.community.notify.template.TemplateManager;
import org.jetlinks.community.notify.voice.VoiceProvider;
import org.jetlinks.core.Values;
import reactor.core.publisher.Mono;
import javax.annotation.Nonnull;
import java.util.Map;
import java.util.Objects;
@Slf4j
public class AliyunVoiceNotifier extends AbstractNotifier<AliyunVoiceTemplate> {
private final IAcsClient client;
private String domain = "dyvmsapi.aliyuncs.com";
private String regionId = "cn-hangzhou";
private final int connectTimeout = 1000;
private final int readTimeout = 5000;
@Getter
private String notifierId;
public AliyunVoiceNotifier(NotifierProperties profile, TemplateManager templateManager) {
super(templateManager);
this.notifierId = profile.getId();
Map<String, Object> config = profile.getConfiguration();
DefaultProfile defaultProfile = DefaultProfile.getProfile(
this.regionId = (String) Objects.requireNonNull(config.get("regionId"), "regionId不能为空"),
(String) Objects.requireNonNull(config.get("accessKeyId"), "accessKeyId不能为空"),
(String) Objects.requireNonNull(config.get("secret"), "secret不能为空")
);
this.client = new DefaultAcsClient(defaultProfile);
this.domain = (String) config.getOrDefault("domain", "dyvmsapi.aliyuncs.com");
}
public AliyunVoiceNotifier(IClientProfile profile, TemplateManager templateManager) {
this(new DefaultAcsClient(profile), templateManager);
}
public AliyunVoiceNotifier(IAcsClient client, TemplateManager templateManager) {
super(templateManager);
this.client = client;
}
@Override
@Nonnull
public NotifyType getType() {
return DefaultNotifyType.voice;
}
@Nonnull
@Override
public Provider getProvider() {
return VoiceProvider.aliyun;
}
@Override
@Nonnull
public Mono<Void> send(@Nonnull AliyunVoiceTemplate template, @Nonnull Values context) {
return Mono.<Void>defer(() -> {
try {
CommonRequest request = new CommonRequest();
request.setMethod(MethodType.POST);
request.setDomain(domain);
request.setVersion("2017-05-25");
request.setAction("SingleCallByTts");
request.setConnectTimeout(connectTimeout);
request.setReadTimeout(readTimeout);
request.putQueryParameter("RegionId", regionId);
request.putQueryParameter("CalledShowNumber", template.getCalledShowNumbers());
request.putQueryParameter("CalledNumber", template.getCalledNumber());
request.putQueryParameter("TtsCode", template.getTtsCode());
request.putQueryParameter("PlayTimes", String.valueOf(template.getPlayTimes()));
request.putQueryParameter("TtsParam", template.createTtsParam(context.getAllValues()));
CommonResponse response = client.getCommonResponse(request);
log.info("发起语音通知完成 {}:{}", response.getHttpResponse().getStatus(), response.getData());
JSONObject json = JSON.parseObject(response.getData());
if (!"ok".equalsIgnoreCase(json.getString("Code"))) {
return Mono.error(new BusinessException(json.getString("Message"), json.getString("Code")));
}
} catch (Exception e) {
return Mono.error(e);
}
return Mono.empty();
}).doOnEach(ReactiveLogger.onError(err -> {
log.info("发起语音通知失败", err);
}));
}
@Override
@Nonnull
public Mono<Void> close() {
return Mono.fromRunnable(client::shutdown);
}
}
| 1,807 |
831 |
<filename>android/src/com/android/tools/idea/navigator/nodes/ndk/includes/resolver/IncludeResolver.java
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.tools.idea.navigator.nodes.ndk.includes.resolver;
import com.android.tools.idea.navigator.nodes.ndk.includes.model.PackageType;
import com.android.tools.idea.navigator.nodes.ndk.includes.model.SimpleIncludeValue;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.File;
/**
* Base include folder resolver. Resolvers generally work against regular expressions.
* For this reason, paths are expected to be:
* (1) Fully qualified
* (2) Have unix style separators
* Conversion to File or VirtualFile happens downstream of the resolver logic.
*/
abstract public class IncludeResolver {
/**
* Get the complete set of resolvers (where order matters).
*/
@NotNull
public static IncludeResolver getGlobalResolver(@Nullable File ndkPath) {
IncludeResolver[] resolvers =
new IncludeResolver[]{new NdkIncludeResolver(), new CDepIncludeResolver(), new CocosIncludeResolver(),
thirdParty(), externals(), new PlainFolderIncludeResolver()};
return new IncludeResolver() {
@Override
public SimpleIncludeValue resolve(@NotNull File includeFolder) {
for (IncludeResolver resolver : resolvers) {
SimpleIncludeValue dependency = resolver.resolve(includeFolder);
if (dependency != null) {
return dependency;
}
}
return null;
}
};
}
/**
* Generate a Third Party resolver.
*/
@NotNull
static IncludeResolver thirdParty() {
return new IndexedRegularExpressionIncludeResolver(PackageType.ThirdParty, "^(?<home>.*)(?<relative>/third[_-]party/(?<library>.*?)/.*)$", null);
}
/**
* Generate an Externals resolver.
*/
@NotNull
static IncludeResolver externals() {
return new IndexedRegularExpressionIncludeResolver(PackageType.Externals, "^(?<home>.*)(?<relative>/(?:E|e)xternals?/(?<library>.*?)/.*)$", null);
}
@Nullable
public abstract SimpleIncludeValue resolve(@NotNull File includeFolder);
}
| 893 |
421 |
/*
This program converts a String* containing an IP address, in dotted-quad notation for
IPv4 or in colon-hexadecimal for IPv6, into an instance of the IPAddress class.
Then it uses the overloaded IPAddress ToString method to display the address in
its standard notation.
*/
// <Snippet1>
#using <System.dll>
using namespace System;
using namespace System::Net;
// This method calls the IPAddress::Parse method to check the ipAddress
// input string. If the ipAddress argument represents a syntatically correct IPv4 or
// IPv6 address, the method displays the Parse output into quad-notation or
// colon-hexadecimal notation, respectively. Otherwise, it displays an
// error message.
void parse( String^ ipAddress )
{
try
{
// Create an instance of IPAddress for the specified address string (in
// dotted-quad, or colon-hexadecimal notation).
IPAddress^ address = IPAddress::Parse( ipAddress );
// Display the address in standard notation.
Console::WriteLine( "Parsing your input string: \"{0}\" produces this address (shown in its standard notation): {1}", ipAddress, address );
}
catch ( ArgumentNullException^ e )
{
Console::WriteLine( "ArgumentNullException caught!!!" );
Console::WriteLine( "Source : {0}", e->Source );
Console::WriteLine( "Message : {0}", e->Message );
}
catch ( FormatException^ e )
{
Console::WriteLine( "FormatException caught!!!" );
Console::WriteLine( "Source : {0}", e->Source );
Console::WriteLine( "Message : {0}", e->Message );
}
catch ( Exception^ e )
{
Console::WriteLine( "Exception caught!!!" );
Console::WriteLine( "Source : {0}", e->Source );
Console::WriteLine( "Message : {0}", e->Message );
}
}
int main()
{
array<String^>^args = Environment::GetCommandLineArgs();
String^ IPaddress;
if ( args->Length == 1 )
{
Console::WriteLine( "Please enter an IP address." );
Console::WriteLine( "Usage: >cs_parse any IPv4 or IPv6 address." );
Console::WriteLine( "Example: >cs_parse 127.0.0.1" );
Console::WriteLine( "Example: >cs_parse 0:0:0:0:0:0:0:1" );
return 0;
}
else
IPaddress = args[ 1 ];
// Get the list of the IPv6 addresses associated with the requested host.
parse( IPaddress );
}
// </Snippet1>
| 885 |
465 |
<reponame>jasonnoy/COMP5329<filename>src/models/utils/__init__.py<gh_stars>100-1000
from .factory import create_model
__all__ = ['create_model']
| 55 |
6,989 |
///////////////////////////////////////////////////////////////////////////////
//
/// \file outqueue.h
/// \brief Output queue handling in multithreaded coding
//
// Author: <NAME>
//
// This file has been put into the public domain.
// You can do whatever you want with this file.
//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
/// Output buffer for a single thread
typedef struct {
/// Pointer to the output buffer of lzma_outq.buf_size_max bytes
uint8_t *buf;
/// Amount of data written to buf
size_t size;
/// Additional size information
lzma_vli unpadded_size;
lzma_vli uncompressed_size;
/// True when no more data will be written into this buffer.
///
/// \note This is read by another thread and thus access
/// to this variable needs a mutex.
bool finished;
} lzma_outbuf;
typedef struct {
/// Array of buffers that are used cyclically.
lzma_outbuf *bufs;
/// Memory allocated for all the buffers
uint8_t *bufs_mem;
/// Amount of buffer space available in each buffer
size_t buf_size_max;
/// Number of buffers allocated
uint32_t bufs_allocated;
/// Position in the bufs array. The next buffer to be taken
/// into use is bufs[bufs_pos].
uint32_t bufs_pos;
/// Number of buffers in use
uint32_t bufs_used;
/// Position in the buffer in lzma_outq_read()
size_t read_pos;
} lzma_outq;
/**
* \brief Calculate the memory usage of an output queue
*
* \return Approximate memory usage in bytes or UINT64_MAX on error.
*/
extern uint64_t lzma_outq_memusage(uint64_t buf_size_max, uint32_t threads);
/// \brief Initialize an output queue
///
/// \param outq Pointer to an output queue. Before calling
/// this function the first time, *outq should
/// have been zeroed with memzero() so that this
/// function knows that there are no previous
/// allocations to free.
/// \param allocator Pointer to allocator or NULL
/// \param buf_size_max Maximum amount of data that a single buffer
/// in the queue may need to store.
/// \param threads Number of buffers that may be in use
/// concurrently. Note that more than this number
/// of buffers will actually get allocated to
/// improve performance when buffers finish
/// out of order.
///
/// \return - LZMA_OK
/// - LZMA_MEM_ERROR
///
extern lzma_ret lzma_outq_init(
lzma_outq *outq, const lzma_allocator *allocator,
uint64_t buf_size_max, uint32_t threads);
/// \brief Free the memory associated with the output queue
extern void lzma_outq_end(lzma_outq *outq, const lzma_allocator *allocator);
/// \brief Get a new buffer
///
/// lzma_outq_has_buf() must be used to check that there is a buffer
/// available before calling lzma_outq_get_buf().
///
extern lzma_outbuf *lzma_outq_get_buf(lzma_outq *outq);
/// \brief Test if there is data ready to be read
///
/// Call to this function must be protected with the same mutex that
/// is used to protect lzma_outbuf.finished.
///
extern bool lzma_outq_is_readable(const lzma_outq *outq);
/// \brief Read finished data
///
/// \param outq Pointer to an output queue
/// \param out Beginning of the output buffer
/// \param out_pos The next byte will be written to
/// out[*out_pos].
/// \param out_size Size of the out buffer; the first byte into
/// which no data is written to is out[out_size].
/// \param unpadded_size Unpadded Size from the Block encoder
/// \param uncompressed_size Uncompressed Size from the Block encoder
///
/// \return - LZMA: All OK. Either no data was available or the buffer
/// being read didn't become empty yet.
/// - LZMA_STREAM_END: The buffer being read was finished.
/// *unpadded_size and *uncompressed_size were set.
///
/// \note This reads lzma_outbuf.finished variables and thus call
/// to this function needs to be protected with a mutex.
///
extern lzma_ret lzma_outq_read(lzma_outq *restrict outq,
uint8_t *restrict out, size_t *restrict out_pos,
size_t out_size, lzma_vli *restrict unpadded_size,
lzma_vli *restrict uncompressed_size);
/// \brief Test if there is at least one buffer free
///
/// This must be used before getting a new buffer with lzma_outq_get_buf().
///
static inline bool
lzma_outq_has_buf(const lzma_outq *outq)
{
return outq->bufs_used < outq->bufs_allocated;
}
/// \brief Test if the queue is completely empty
static inline bool
lzma_outq_is_empty(const lzma_outq *outq)
{
return outq->bufs_used == 0;
}
| 1,998 |
600 |
<reponame>villcore/jafka
/**
* 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 io.jafka.message;
import static java.lang.String.format;
import java.nio.ByteBuffer;
import io.jafka.api.ICalculable;
import io.jafka.common.UnknownMagicByteException;
import io.jafka.utils.Utils;
/**
* * A message. The format of an N byte message is the following:
*
* <p>
* magic byte is 1
*
* <pre>
* 1. 1 byte "magic" identifier to allow format changes
* 2. 1 byte "attributes" identifier to allow annotations on the message
* independent of the version (e.g. compression enabled, type of codec used)
* 3. 4 byte CRC32 of the payload
* 4. N - 6 byte payload
* </pre>
*
*
* @author adyliu (<EMAIL>)
* @since 1.0
*/
public class Message implements ICalculable {
private static final byte MAGIC_VERSION2 = 1;
public static final byte CurrentMagicValue = 1;
public static final byte MAGIC_OFFSET = 0;
public static final byte MAGIC_LENGTH = 1;
public static final byte ATTRIBUTE_OFFSET = MAGIC_OFFSET + MAGIC_LENGTH;
public static final byte ATTRIBUT_ELENGTH = 1;
/**
* Specifies the mask for the compression code. 2 bits to hold the
* compression codec. 0 is reserved to indicate no compression
*/
public static final int CompressionCodeMask = 0x03; //
public static final int NoCompression = 0;
/**
* Computes the CRC value based on the magic byte
*
* @param magic Specifies the magic byte value. Possible values are 1
* (compression)
* @return crc value
*/
public static int crcOffset(byte magic) {
switch (magic) {
case MAGIC_VERSION2:
return ATTRIBUTE_OFFSET + ATTRIBUT_ELENGTH;
}
throw new UnknownMagicByteException(format("Magic byte value of %d is unknown", magic));
}
public static final byte CrcLength = 4;
/**
* Computes the offset to the message payload based on the magic byte
*
* @param magic Specifies the magic byte value. Possible values are 0
* and 1 0 for no compression 1 for compression
* @return offset data
*/
public static int payloadOffset(byte magic) {
return crcOffset(magic) + CrcLength;
}
/**
* Computes the size of the message header based on the magic byte
*
* @param magic Specifies the magic byte value. Possible values are 0
* and 1 0 for no compression 1 for compression
* @return size of header
*/
public static int headerSize(byte magic) {
return payloadOffset(magic);
}
/**
* Size of the header for magic byte 0. This is the minimum size of any
* message header
*/
public static final int MinHeaderSize = headerSize((byte) 1);
final ByteBuffer buffer;
private final int messageSize;
public Message(ByteBuffer buffer) {
this.buffer = buffer;
this.messageSize = buffer.limit();
}
public Message(long checksum, byte[] bytes, CompressionCodec compressionCodec) {
this(ByteBuffer.allocate(Message.headerSize(Message.CurrentMagicValue) + bytes.length));
buffer.put(CurrentMagicValue);
byte attributes = 0;
if (compressionCodec.codec > 0) {
attributes = (byte) (attributes | (CompressionCodeMask & compressionCodec.codec));
}
buffer.put(attributes);
Utils.putUnsignedInt(buffer, checksum);
buffer.put(bytes);
buffer.rewind();
}
public Message(long checksum, byte[] bytes) {
this(checksum, bytes, CompressionCodec.NoCompressionCodec);
}
public Message(byte[] bytes, CompressionCodec compressionCodec) {
this(Utils.crc32(bytes), bytes, compressionCodec);
}
/**
* create no compression message
*
* @param bytes message data
* @see CompressionCodec#NoCompressionCodec
*/
public Message(byte[] bytes) {
this(bytes, CompressionCodec.NoCompressionCodec);
}
//
public int getSizeInBytes() {
return messageSize;
}
/**
* magic code ( constant 1)
*
* @return 1
*/
public byte magic() {
return buffer.get(MAGIC_OFFSET);
}
public int payloadSize() {
return getSizeInBytes() - headerSize(magic());
}
public byte attributes() {
return buffer.get(ATTRIBUTE_OFFSET);
}
public CompressionCodec compressionCodec() {
byte magicByte = magic();
switch (magicByte) {
case 0:
return CompressionCodec.NoCompressionCodec;
case 1:
return CompressionCodec.valueOf(buffer.get(ATTRIBUTE_OFFSET) & CompressionCodeMask);
}
throw new RuntimeException("Invalid magic byte " + magicByte);
}
public long checksum() {
return Utils.getUnsignedInt(buffer, crcOffset(magic()));
}
/**
* get the real data without message header
* @return message data(without header)
*/
public ByteBuffer payload() {
ByteBuffer payload = buffer.duplicate();
payload.position(headerSize(magic()));
payload = payload.slice();
payload.limit(payloadSize());
payload.rewind();
return payload;
}
public boolean isValid() {
return checksum() == Utils.crc32(buffer.array(), buffer.position() + buffer.arrayOffset() + payloadOffset(magic()), payloadSize());
}
public int serializedSize() {
return 4 /* int size */+ buffer.limit();
}
public void serializeTo(ByteBuffer serBuffer) {
serBuffer.putInt(buffer.limit());
serBuffer.put(buffer.duplicate());
}
//
@Override
public String toString() {
return format("message(magic = %d, attributes = %d, crc = %d, payload = %s)",//
magic(), attributes(), checksum(), payload());
}
@Override
public boolean equals(Object obj) {
if (obj instanceof Message) {
Message m = (Message) obj;
return getSizeInBytes() == m.getSizeInBytes()//
&& attributes() == m.attributes()//
&& checksum() == m.checksum()//
&& payload() == m.payload()//
&& magic() == m.magic();
}
return false;
}
@Override
public int hashCode() {
return buffer.hashCode();
}
}
| 2,666 |
713 |
package org.infinispan.scripting.utils;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.stream.Stream;
public class JSArrays {
static final Method SCRIPTUTILS_CONVERT;
static {
Class<?> SCRIPTUTILS;
try {
SCRIPTUTILS = Class.forName("org.openjdk.nashorn.api.scripting.ScriptUtils");
} catch (ClassNotFoundException e) {
try {
SCRIPTUTILS = Class.forName("jdk.nashorn.api.scripting.ScriptUtils");
} catch (ClassNotFoundException classNotFoundException) {
throw new RuntimeException(classNotFoundException);
}
}
try {
SCRIPTUTILS_CONVERT = SCRIPTUTILS.getMethod("convert", Object.class, Object.class);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
@SuppressWarnings("restriction")
public static Stream<Object> stream(Object array) {
try {
return Arrays.stream((Object[]) SCRIPTUTILS_CONVERT.invoke(null, array, Object[].class));
} catch (Throwable t) {
throw new RuntimeException(t);
}
}
}
| 459 |
3,027 |
from hummingbot.strategy.market_trading_pair_tuple import MarketTradingPairTuple
from hummingbot.strategy.hedge.hedge_config_map import hedge_config_map as c_map
from hummingbot.strategy.hedge.hedge import HedgeStrategy
from hummingbot.strategy.hedge.exchange_pair import ExchangePairTuple
def start(self):
maker_exchange = c_map.get("maker_exchange").value.lower()
taker_exchange = c_map.get("taker_exchange").value.lower()
maker_assets = list(c_map.get("maker_assets").value.split(","))
taker_markets = list(c_map.get("taker_markets").value.split(","))
maker_assets = [m.strip().upper() for m in maker_assets]
taker_markets = [m.strip().upper() for m in taker_markets]
hedge_ratio = c_map.get("hedge_ratio").value
leverage = c_map.get("leverage").value
slippage = c_map.get("slippage").value
max_order_age = c_map.get("max_order_age").value
minimum_trade = c_map.get("minimum_trade").value
hedge_interval = c_map.get("hedge_interval").value
self._initialize_markets([(maker_exchange, []), (taker_exchange, taker_markets)])
exchanges = ExchangePairTuple(maker=self.markets[maker_exchange], taker=self.markets[taker_exchange])
market_infos = {}
for i, maker_asset in enumerate(maker_assets):
taker_market = taker_markets[i]
t_base, t_quote = taker_market.split("-")
taker = MarketTradingPairTuple(self.markets[taker_exchange], taker_market, t_base, t_quote)
market_infos[maker_asset] = taker
self.strategy = HedgeStrategy()
self.strategy.init_params(
exchanges = exchanges,
market_infos = market_infos,
hedge_ratio = hedge_ratio,
leverage = leverage,
minimum_trade = minimum_trade,
slippage = slippage,
max_order_age = max_order_age,
hedge_interval = hedge_interval,
)
| 729 |
665 |
/* floating_point.h -*- C++ -*-
<NAME>, 27 January 2005
Copyright (c) 2005 <NAME>. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
---
Utilities to deal with floating point numbers.
*/
#pragma once
#include "mldb/compiler/compiler.h"
#include <limits>
#include <stdint.h>
#include <cmath>
#include <algorithm>
#include <limits>
#include <type_traits>
namespace MLDB {
namespace {
struct int_float {
MLDB_ALWAYS_INLINE int_float(uint32_t x) { i = x; }
MLDB_ALWAYS_INLINE int_float(float x) { f = x; }
union {
float f;
uint32_t i;
};
};
struct int_double {
MLDB_ALWAYS_INLINE int_double(uint64_t x) { i = x; }
MLDB_ALWAYS_INLINE int_double(double x) { f = x; }
union {
double f;
uint64_t i;
};
};
} // file scope
/** Functions to get the bit patterns of floating point numbers in and out of
integers for twiddling.
*/
MLDB_ALWAYS_INLINE float reinterpret_as_float(uint32_t val)
{
return int_float(val).f;
}
MLDB_ALWAYS_INLINE double reinterpret_as_double(uint64_t val)
{
return int_double(val).f;
}
MLDB_ALWAYS_INLINE uint32_t reinterpret_as_int(float val)
{
return int_float(val).i;
}
MLDB_ALWAYS_INLINE uint64_t reinterpret_as_int(double val)
{
return int_double(val).i;
}
/** Like std::less<Float>, but has a well defined order for nan values, which
allows us to sort ranges that might contain nan values without crashing.
*/
template<typename Float>
struct safe_less {
bool operator () (Float v1, Float v2) const
{
bool nan1 = std::isnan(v1), nan2 = std::isnan(v2);
if (nan1 && nan2) return false;
return (nan1 > nan2)
|| ((nan1 == nan2) && v1 < v2);
}
};
struct float_hasher {
MLDB_ALWAYS_INLINE int operator () (float val) const
{
return reinterpret_as_int(val);
}
};
template<class C>
struct fp_traits
: public std::numeric_limits<C> {
};
template<>
struct fp_traits<float>
: public std::numeric_limits<float> {
/** Maximum argument to exp() that doesn't result in an infinity. Found
using exp_test program in boosting/testing. */
static const float max_exp_arg;
};
template<>
struct fp_traits<double>
: public std::numeric_limits<double> {
static const double max_exp_arg;
};
template<>
struct fp_traits<long double>
: public std::numeric_limits<long double> {
static const long double max_exp_arg;
};
template<typename Float, typename Int>
struct FloatIntegerClamper {
static constexpr bool specialized = false;
static constexpr Float min = static_cast<Float>(std::numeric_limits<Int>::min());
static constexpr Float max = static_cast<Float>(std::numeric_limits<Int>::max());
static constexpr bool in_range(Float val)
{
return val >= min && val <= max;
}
static constexpr Int clamp(Float val)
{
if (val < min) return std::numeric_limits<Int>::min();
if (val > max) return std::numeric_limits<Int>::max();
return val;
//return static_cast<int64_t>(std::clamp(val, min, max));
}
};
template<>
struct FloatIntegerClamper<double, int64_t> {
static constexpr bool specialized = true;
static constexpr double min = -0x1p+63;
static constexpr double max = 0x1.fffffffffffffp+62;
static constexpr bool in_range(double val)
{
return val >= min && val <= max;
}
static constexpr int64_t clamp(double val)
{
if (val < min) return std::numeric_limits<int64_t>::min();
if (val > max) return std::numeric_limits<int64_t>::max();
return val;
//return static_cast<int64_t>(std::clamp(val, min, max));
}
};
template<>
struct FloatIntegerClamper<double, uint64_t> {
static constexpr bool specialized = true;
static constexpr double min = 0;
static constexpr double max = 0x1.fffffffffffffp+63;
static constexpr bool in_range(double val)
{
return val >= min && val <= max;
}
static constexpr uint64_t clamp(double val)
{
if (val < min) return std::numeric_limits<uint64_t>::min();
if (val > max) return std::numeric_limits<uint64_t>::max();
return val;
//return static_cast<uint64_t>(std::clamp(val, min, max));
}
};
template<>
struct FloatIntegerClamper<float, int64_t> {
static constexpr bool specialized = true;
static constexpr float min = -0x1p+63;
static constexpr float max = 0x1.fffffep+62;
static constexpr bool in_range(float val)
{
return val >= min && val <= max;
}
static constexpr int64_t clamp(float val)
{
if (val < min) return std::numeric_limits<int64_t>::min();
if (val > max) return std::numeric_limits<int64_t>::max();
return val;
//return static_cast<int64_t>(std::clamp(val, min, max));
}
};
template<>
struct FloatIntegerClamper<float, uint64_t> { // here
static constexpr bool specialized = true;
static constexpr float min = 0;
static constexpr float max = 0x1.fffffep+63;
static constexpr bool in_range(float val)
{
return val >= min && val <= max;
}
static constexpr uint64_t clamp(float val)
{
if (val < min) return std::numeric_limits<uint64_t>::min();
if (val > max) return std::numeric_limits<uint64_t>::max();
return val;
//return static_cast<uint64_t>(std::clamp(val, min, max));
}
};
template<>
struct FloatIntegerClamper<float, int32_t> {
static constexpr bool specialized = true;
static constexpr float min = -0x1p+31;
static constexpr float max = 0x1.fffffep+30;
static constexpr bool in_range(float val)
{
return val >= min && val <= max;
}
static constexpr int32_t clamp(float val)
{
if (val < min) return std::numeric_limits<int32_t>::min();
if (val > max) return std::numeric_limits<int32_t>::max();
return val;
//return static_cast<int32_t>(std::clamp(val, min, max));
}
};
template<>
struct FloatIntegerClamper<float, uint32_t> {
static constexpr bool specialized = true;
static constexpr float min = 0;
static constexpr float max = 0x1.fffffep+31;
static constexpr bool in_range(float val)
{
return val >= min && val <= max;
}
static constexpr uint32_t clamp(float val)
{
if (val < min) return std::numeric_limits<uint32_t>::min();
if (val > max) return std::numeric_limits<uint32_t>::max();
return val;
//return static_cast<uint32_t>(std::clamp(val, min, max));
}
};
// Conversion that avoids undefined behavior if out of range
template<typename Int, typename Float>
constexpr Int safe_clamp(Float val)
{
return FloatIntegerClamper<Float, Int>::clamp(val);
}
template<typename Float>
struct SafeClamper {
Float f;
template<typename Int, typename Enable = std::enable_if_t<std::is_integral_v<Int>>>
constexpr operator Int () const { return safe_clamp<Int, Float>(f); }
};
template<typename Float>
constexpr SafeClamper<Float> safely_clamped(Float f)
{
return SafeClamper<Float>{f};
}
} // namespace MLDB
| 2,933 |
8,468 |
<filename>src/Cedar/CM.h
// SoftEther VPN Source Code - Developer Edition Master Branch
// Cedar Communication Module
// CM.h
// Header of CM.c
#ifdef OS_WIN32
#ifndef CM_H
#define CM_H
#include "GlobalConst.h"
#include "Mayaqua/MayaType.h"
// Constants
#define CM_REG_KEY "Software\\" GC_REG_COMPANY_NAME "\\" CEDAR_PRODUCT_STR " VPN\\Client Manager"
#define SECURE_MANAGER_KEY "Software\\" GC_REG_COMPANY_NAME "\\" CEDAR_PRODUCT_STR " VPN\\SmartCard Manager"
#define CM_TRAFFIC_REG_KEY "Software\\" GC_REG_COMPANY_NAME "\\" CEDAR_PRODUCT_STR " VPN\\Traffic Test Tool"
#define CM_VGC_REG_KEY "Software\\University of Tsukuba\\VPN Gate Client Plugin"
#define CM_TRY_EXEC_UI_HELPER_INTERVAL 5000
#define CM_DEFAULT_WIDTH 800
#define CM_DEFAULT_HEIGHT 600
#define WM_CM_NOTIFY (WM_APP + 999)
#define CM_IMPORT_FILENAME_MSG 1267
#define CM_IMPORT_FILENAME_MSG_OVERWRITE 1268
#define CM_NUM_RECENT 8
#define PUBLIC_SERVER_HTML "http://www.softether.com/jp/special/se2hub.aspx"
#define PUBLIC_SERVER_HTML_EN "http://www.softether.com/jp/special/se2hub_en.aspx"
#define PUBLIC_SERVER_TAG L"help:no; status:no; DialogWidth:600px; dialogHeight=700px"
#define PUBLIC_SERVER_NAME "public.softether.com"
#define VOICE_SSK 0 // ssk
#define VOICE_AHO 1 // aho
// The code for external export
// Structure
// Function prototype
void CMExec();
void CmTraffic(HWND hWnd);
void *CmStartUacHelper();
void CmStopUacHelper(void *p);
void *CmExecUiHelperMain();
UINT CmGetSecureBitmapId(char *dest_hostname);
#endif // CM_H
#endif // OS_WIN32
| 705 |
14,668 |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CONTINUOUS_SEARCH_INTERNAL_SEARCH_RESULT_EXTRACTOR_PRODUCER_H_
#define CHROME_BROWSER_CONTINUOUS_SEARCH_INTERNAL_SEARCH_RESULT_EXTRACTOR_PRODUCER_H_
#include <memory>
#include "base/android/jni_android.h"
#include "base/android/scoped_java_ref.h"
#include "base/memory/weak_ptr.h"
#include "components/continuous_search/browser/search_result_extractor_client.h"
#include "components/continuous_search/browser/search_result_extractor_client_status.h"
#include "components/continuous_search/common/public/mojom/continuous_search.mojom.h"
namespace continuous_search {
class SearchResultExtractorProducerInterface;
// C++ implementation of the Java SearchResultExtractorProducer.
class SearchResultExtractorProducer {
public:
SearchResultExtractorProducer(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& j_object,
std::unique_ptr<SearchResultExtractorProducerInterface> interface);
~SearchResultExtractorProducer();
SearchResultExtractorProducer(const SearchResultExtractorProducer&) = delete;
SearchResultExtractorProducer& operator=(
const SearchResultExtractorProducer&) = delete;
// Fetches search metadata from the SRP in `j_web_contents`.
void FetchResults(JNIEnv* env,
const base::android::JavaParamRef<jobject>& j_web_contents,
const base::android::JavaParamRef<jstring>& j_query);
// Destroy `this` as it is owned by Java.
void Destroy(JNIEnv* env);
private:
// Called when `FetchResults()` finishes.
void OnResultsCallback(const std::string& query,
SearchResultExtractorClientStatus status,
mojom::CategoryResultsPtr results);
base::android::ScopedJavaGlobalRef<jobject> java_ref_;
std::unique_ptr<SearchResultExtractorProducerInterface> java_interface_;
SearchResultExtractorClient client_;
base::WeakPtrFactory<SearchResultExtractorProducer> weak_ptr_factory_{this};
};
} // namespace continuous_search
#endif // CHROME_BROWSER_CONTINUOUS_SEARCH_INTERNAL_SEARCH_RESULT_EXTRACTOR_PRODUCER_H_
| 797 |
347 |
<filename>backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AbstractGraphicsDeviceCommand.java
package org.ovirt.engine.core.bll;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import org.ovirt.engine.core.bll.context.CommandContext;
import org.ovirt.engine.core.bll.utils.PermissionSubject;
import org.ovirt.engine.core.bll.utils.VmDeviceUtils;
import org.ovirt.engine.core.common.VdcObjectType;
import org.ovirt.engine.core.common.action.GraphicsParameters;
import org.ovirt.engine.core.common.businessentities.GraphicsDevice;
import org.ovirt.engine.core.common.errors.EngineMessage;
import org.ovirt.engine.core.compat.Guid;
import org.ovirt.engine.core.vdsbroker.ResourceManager;
public abstract class AbstractGraphicsDeviceCommand<T extends GraphicsParameters> extends CommandBase<T> {
@Inject
protected ResourceManager resourceManager;
@Inject
protected VmDeviceUtils vmDeviceUtils;
public AbstractGraphicsDeviceCommand(T parameters, CommandContext cmdContext) {
super(parameters, cmdContext);
if (parameters.isVm()) {
setVmId(parameters.getDev().getVmId());
} else {
setVmTemplateId(parameters.getDev().getVmId());
}
}
@Override
protected boolean validate() {
GraphicsDevice dev = getParameters().getDev();
if (dev == null) {
return failValidation(EngineMessage.ACTION_TYPE_FAILED_DEVICE_MUST_BE_SPECIFIED);
}
if (getParameters().isVm() && getVm() == null) {
return failValidation(EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND);
}
if (!getParameters().isVm() && getVmTemplate() == null) {
return failValidation(EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST);
}
if (dev.getGraphicsType() == null) {
return failValidation(EngineMessage.ACTION_TYPE_FAILED_GRAPHIC_TYPE_MUST_BE_SPECIFIED);
}
return true;
}
@Override
public List<PermissionSubject> getPermissionCheckSubjects() {
List<PermissionSubject> permissionList = new ArrayList<>();
permissionList.add(new PermissionSubject(getVmBaseId(),
getParameters().isVm() ? VdcObjectType.VM : VdcObjectType.VmTemplate,
getActionType().getActionGroup()));
return permissionList;
}
protected Guid getVmBaseId() {
return getParameters().getDev().getVmId();
}
}
| 975 |
3,428 |
<gh_stars>1000+
{"id":"00072","group":"spam-2","checksum":{"type":"MD5","value":"eb147f0714c89bf35a0ab1852890555d"},"text":"From <EMAIL> Thu Jul 5 12:24:46 2001\nReturn-Path: <<EMAIL>>\nDelivered-To: <EMAIL>\nReceived: from ns.ns.gongbuhaja.com (unknown [172.16.58.315]) by\n mail.netnoteinc.com (Postfix) with SMTP id 6974613048D for\n <<EMAIL>>; Thu, 5 Jul 2001 11:24:35 +0000 (Eire)\nReceived: from 122 (unverified [192.168.3.11]) by ns.ns.gongbuhaja.com\n (EMWAC SMTPRS 0.83) with SMTP id <<EMAIL>>;\n Thu, 05 Jul 2001 20:22:36 +0900\nMessage-Id: <00003a632cd3$00001382$000002bc@x153>\nTo: <<EMAIL>>\nFrom: <EMAIL>\nSubject: Get the BEST Rate On a Home Loan!\nDate: Thu, 05 Jul 2001 01:37:24 -0500\nMIME-Version: 1.0\nContent-Transfer-Encoding: quoted-printable\nX-Priority: 1\nX-Msmail-Priority: High\nReply-To: <EMAIL>\n\n\n<HTML>\n<BODY>\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<html>\n\n<head>\n<title>C:\\Mortgage\\html1.htm</title>\n<meta content=3D\"text/html; charset=3Dwindows-1252\" http-equiv=3D\"Content-=\nType\">\n<style fprolloverstyle>A:hover {\n\tCOLOR: #ff0000\n}\n</style>\n<meta content=3D\"Microsoft FrontPage 3.0\" name=3D\"GENERATOR\">\n</head>\n\n<body background bgProperties=3D\"fixed\" bgcolor=3D\"#FFFFFF\">\n\n<p align=3D\"center\"><font face=3D\"Arial\" size=3D\"2\" ptsize=3D\"8\">If you wo=\nuld like to be removed\nfrom future mailings, please reply with the word remove in the subject or =\ncall\n888-418-2575.</font></p>\n\n<hr>\n\n<p align=3D\"center\"><b><font size=3D\"6\" face=3D\"Arial\" color=3D\"#0000ff\" P=\nTSIZE=3D\"11\">Let lenders\ncompete for</font><font size=3D\"6\" face=3D\"Arial\" color=3D\"#000000\" PTSIZE=\n=3D\"11\"><br>\n<u><i>your</i></u> </font><font size=3D\"6\" face=3D\"Arial\" color=3D\"#0000ff=\n\" PTSIZE=3D\"11\">business!</font></b><font\nsize=3D\"4\" PTSIZE=3D\"11\" color=3D\"#000000\" face=3D\"Arial\"><br>\n<br>\n</font><a href=3D\"http://quotes.freehost1.com/?SP704J\"><font PTSIZE=3D\"11\"=\n face=3D\"Arial\"\nsize=3D\"3\" color=3D\"#0000FF\"><b>Click Here</b></font></a><font face=3D\"Ari=\nal\" lang=3D\"0\" size=3D\"1\"\nPTSIZE=3D\"8\" FAMILY=3D\"SANSSERIF\"><br>\n<br>\n</font><font color=3D\"#008080\" face=3D\"Arial\" lang=3D\"0\" PTSIZE=3D\"10\" FAM=\nILY=3D\"SANSSERIF\" size=3D\"3\"><b>Cash\nback refinances<br>\nNo Equity 2nd Trust Deeds<br>\nDebt Consolidation<br>\nNo Income Verification<br>\nThe most competitive interest rates!</b></font><font color=3D\"#008080\" fac=\ne=3D\"Arial\" size=3D\"2\"\nPTSIZE=3D\"11\"><br>\n</font><font color=3D\"#008080\" size=3D\"4\" PTSIZE=3D\"11\" face=3D\"Arial\"><br=\n>\n</font><b><font face=3D\"Arial\" PTSIZE=3D\"8\" size=3D\"3\">Fill in our quick <=\na\nhref=3D\"http://quotes.freehost1.com/?SP704J\">pre-qualification form</a> an=\nd you <br>\nwill </font><font face=3D\"Arial\"><font size=3D\"3\"><font ptsize=3D\"10\">get =\ncompeting loan offers,\noften <br>\nwithin minutes from up to</font><font face=3D\"Tahoma\" PTSIZE=3D\"8\"> <u>thr=\nee</u> lenders!</font></font></b><font\nface=3D\"Tahoma\" size=3D\"2\" PTSIZE=3D\"11\"><br>\n</font><font size=3D\"4\" PTSIZE=3D\"11\"><br>\n<a href=3D\"http://quotes.freehost1.com/?SP704J\"><font color=3D\"#0000FF\"><b=\n>Click Here</b></font></a></font><font\nface=3D\"Arial\" lang=3D\"0\" size=3D\"4\" PTSIZE=3D\"11\" FAMILY=3D\"SANSSERIF\"><b=\nr>\n</font></font><b><font color=3D\"#008080\" size=3D\"1\" PTSIZE=3D\"8\" face=3D\"A=\nrial\"><br>\n</font><font face=3D\"Arial\"><font color=3D\"#008080\" face=3D\"Arial\" size=3D=\n\"1\" ptsize=3D\"10\">There is</font><font\ncolor=3D\"#000000\" face=3D\"Arial\" size=3D\"1\" ptsize=3D\"10\"> NEVER</font><fo=\nnt color=3D\"#008080\"\nface=3D\"Arial\" size=3D\"1\" ptsize=3D\"10\"> any fee to consumers for using th=\nis service.</font></b>\n<font color=3D\"#000000\" face=3D\"Tahoma\" PTSIZE=3D\"11\"><br>\n</font></font></p>\n\n<p align=3D\"center\"><font face=3D\"Arial\" size=3D\"1\">Copyright =FFFFFFA9 19=\n99, 2000 eWorld Marketing,\nInc.<br>\n888-418-2575<br>\nThis is not a solicitation or offer to lend money. <br>\neWorld Marketing is not a lender, broker or <br>\nother financial intermediary. We are a marketing company <br>\nthat provides services to the mortgage industry.</font> </p>\n</body>\n</html>\n\n\n\n\n\n"}
| 1,922 |
348 |
<gh_stars>100-1000
{"nom":"Beaumont-Monteux","circ":"1ère circonscription","dpt":"Drôme","inscrits":865,"abs":482,"votants":383,"blancs":43,"nuls":11,"exp":329,"res":[{"nuance":"REM","nom":"<NAME>","voix":180},{"nuance":"LR","nom":"<NAME>","voix":149}]}
| 102 |
505 |
package de.rieckpil.blog.dashboard;
import org.springframework.stereotype.Service;
@Service
public class DashboardService {
public Integer[] getAnalyticsGraphData() {
return new Integer[]{1, 2, 3, 4, 5, 6};
}
}
| 77 |
578 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <atomic>
#include <mutex>
#include <thread>
#include <vector>
#include "cachelib/common/AtomicCounter.h"
#include "cachelib/navy/scheduler/JobScheduler.h"
#include "cachelib/navy/scheduler/ThreadPoolJobQueue.h"
namespace facebook {
namespace cachelib {
namespace navy {
// A pool of job queues and their corresponding threads.
class ThreadPoolExecutor {
public:
struct Stats {
uint64_t jobsDone{};
uint64_t jobsHighReschedule{};
uint64_t reschedules{};
uint64_t maxQueueLen{};
uint64_t maxPendingJobs{};
};
// @param numThreads number of threads for the executor
// @param name name for debugging
ThreadPoolExecutor(uint32_t numThreads, folly::StringPiece name);
// put a job into the next queue in pool
// @param job the job to be executed
// @param name name of the job, for logging/debugging purposes
// @param pos front/back of the queue to push in
void enqueue(Job job, folly::StringPiece name, JobQueue::QueuePos pos);
// put a job into the a specific queue in pool based on the key hash
// @param job the job to be executed
// @param name name of the job, for logging/debugging purposes
// @param pos front/back of the queue to push in
// @param key the key hash
void enqueueWithKey(Job job,
folly::StringPiece name,
JobQueue::QueuePos pos,
uint64_t key);
// Waits till all queued and currently running jobs are finished
// @return the total number of jobs processed in the pool.
uint64_t finish();
// stops the queues and wait the current processing job to complete
void join();
// returns the stats of the pool
Stats getStats() const;
folly::StringPiece getName() const { return name_; }
private:
const folly::StringPiece name_{};
std::atomic<uint32_t> nextQueue_{0};
std::vector<std::unique_ptr<JobQueue>> queues_;
std::vector<std::thread> workers_;
};
// Pool of worker threads, each with their own job queue
class ThreadPoolJobScheduler final : public JobScheduler {
public:
// @param readerThreads number of threads for the read scheduler
// @param writerThreads number of threads for the write scheduler
explicit ThreadPoolJobScheduler(uint32_t readerThreads,
uint32_t writerThreads);
ThreadPoolJobScheduler(const ThreadPoolJobScheduler&) = delete;
ThreadPoolJobScheduler& operator=(const ThreadPoolJobScheduler&) = delete;
~ThreadPoolJobScheduler() override { join(); }
// Enqueue a job for processing. @name for logging/debugging purposes.
// Only support Reclaim job type.
void enqueue(Job job, folly::StringPiece name, JobType type) override;
// Enqueue a job for processing. @name for logging/debugging purposes.
// Supports Read and Write job types.
void enqueueWithKey(Job job,
folly::StringPiece name,
JobType type,
uint64_t key) override;
// Waits till all queued and currently running jobs are finished
void finish() override;
// Exports scheduler stats via CounterVisitor.
void getCounters(const CounterVisitor& visitor) const override;
private:
void join();
ThreadPoolExecutor reader_;
ThreadPoolExecutor writer_;
};
// Implements an ordered job scheduler. Ordering is guaranteed for the
// executiong of jobs enqueued by a key.
class OrderedThreadPoolJobScheduler final : public JobScheduler {
public:
// @param readerThreads number of threads for the read scheduler
// @param writerThreads number of threads for the write scheduler
// @param numShardsPower power of two specification for sharding internally
// to avoid contention and queueing
explicit OrderedThreadPoolJobScheduler(size_t readerThreads,
size_t writerThreads,
size_t numShardsPower);
OrderedThreadPoolJobScheduler(const OrderedThreadPoolJobScheduler&) = delete;
OrderedThreadPoolJobScheduler& operator=(
const OrderedThreadPoolJobScheduler&) = delete;
~OrderedThreadPoolJobScheduler() override {}
// put a job into the queue
// @param job the job to be executed
// @param name name of the job, for logging/debugging purposes
// @param type the type of job: Read/Write/Reclaim/Flush
void enqueue(Job job, folly::StringPiece name, JobType type) override;
// put a job into the queue based on the key hash
// execution ordering of the key is guaranteed
// @param job the job to be executed
// @param name name of the job, for logging/debugging purposes
// @param type the type of job: Read/Write/Reclaim/Flush
// @param key the key hash
void enqueueWithKey(Job job,
folly::StringPiece name,
JobType type,
uint64_t key) override;
// waits till all queued and currently running jobs are finished
void finish() override;
// returns the total number of jobs that were spooled (pending) due to
// ordering.
uint64_t getTotalSpooled() const { return numSpooled_.get(); }
// Exports the ordered scheduler stats via CounterVisitor.
void getCounters(const CounterVisitor& visitor) const override;
private:
// represents the parameters describing a job to be scheduled.
struct JobParams {
Job job;
JobType type;
folly::StringPiece name;
uint64_t key;
JobParams(Job j, JobType t, folly::StringPiece n, uint64_t k)
: job{std::move(j)}, type{t}, name{n}, key{k} {}
JobParams(const JobParams&) = delete;
JobParams& operator=(const JobParams&) = delete;
JobParams(JobParams&& o) noexcept
: job{std::move(o.job)}, type{o.type}, name{o.name}, key{o.key} {}
JobParams& operator=(JobParams&& o) {
if (this != &o) {
this->~JobParams();
new (this) JobParams(std::move(o));
}
return *this;
}
};
void scheduleNextJob(uint64_t shard);
void scheduleJobLocked(JobParams params, uint64_t shard);
// mutex per shard. mutex protects the pending jobs and spooling state
mutable std::vector<std::mutex> mutexes_;
// list of jobs per shard if there is already a job pending for the shard
std::vector<std::list<JobParams>> pendingJobs_;
// indicates if there is a pending job for the shard. This is kept as an
// uint64_t instead of bool to ensure atomicity with sharded locks.
std::vector<uint64_t> shouldSpool_;
// total number of jobs that were spooled due to ordering.
AtomicCounter numSpooled_{0};
// current number of jobs in the spool
AtomicCounter currSpooled_{0};
// sharding power
const size_t numShardsPower_;
// the underlying async scheduler
ThreadPoolJobScheduler scheduler_;
};
} // namespace navy
} // namespace cachelib
} // namespace facebook
| 2,550 |
510 |
package com.jpmorgan.cakeshop.metrics;
public interface TickListener {
public void nextTick(double val);
}
| 36 |
1,644 |
// Copyright 2017 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package google.registry.model.domain;
import static com.google.common.base.Preconditions.checkArgument;
import static google.registry.model.IdService.allocateId;
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
import com.google.common.annotations.VisibleForTesting;
import com.googlecode.objectify.annotation.Embed;
import google.registry.model.billing.BillingEvent;
import google.registry.model.billing.BillingEvent.Recurring;
import google.registry.model.domain.rgp.GracePeriodStatus;
import google.registry.model.replay.DatastoreAndSqlEntity;
import google.registry.model.replay.SqlOnlyEntity;
import google.registry.persistence.BillingVKey.BillingEventVKey;
import google.registry.persistence.BillingVKey.BillingRecurrenceVKey;
import google.registry.persistence.VKey;
import javax.annotation.Nullable;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;
import org.joda.time.DateTime;
/**
* A domain grace period with an expiration time.
*
* <p>When a grace period expires, it is lazily removed from the {@link DomainBase} the next time
* the resource is loaded from Datastore.
*/
@Embed
@Entity
@Table(indexes = @Index(columnList = "domainRepoId"))
public class GracePeriod extends GracePeriodBase implements DatastoreAndSqlEntity {
@Id
@Access(AccessType.PROPERTY)
@Override
public long getGracePeriodId() {
return super.getGracePeriodId();
}
private static GracePeriod createInternal(
GracePeriodStatus type,
String domainRepoId,
DateTime expirationTime,
String registrarId,
@Nullable VKey<BillingEvent.OneTime> billingEventOneTime,
@Nullable VKey<BillingEvent.Recurring> billingEventRecurring,
@Nullable Long gracePeriodId) {
checkArgument((billingEventOneTime == null) || (billingEventRecurring == null),
"A grace period can have at most one billing event");
checkArgument(
(billingEventRecurring != null) == GracePeriodStatus.AUTO_RENEW.equals(type),
"Recurring billing events must be present on (and only on) autorenew grace periods");
GracePeriod instance = new GracePeriod();
instance.gracePeriodId = gracePeriodId == null ? allocateId() : gracePeriodId;
instance.type = checkArgumentNotNull(type);
instance.domainRepoId = checkArgumentNotNull(domainRepoId);
instance.expirationTime = checkArgumentNotNull(expirationTime);
instance.clientId = checkArgumentNotNull(registrarId);
instance.billingEventOneTime = BillingEventVKey.create(billingEventOneTime);
instance.billingEventRecurring = BillingRecurrenceVKey.create(billingEventRecurring);
return instance;
}
/**
* Creates a GracePeriod for an (optional) OneTime billing event.
*
* <p>Normal callers should always use {@link #forBillingEvent} instead, assuming they do not need
* to avoid loading the BillingEvent from Datastore. This method should typically be called only
* from test code to explicitly construct GracePeriods.
*/
public static GracePeriod create(
GracePeriodStatus type,
String domainRepoId,
DateTime expirationTime,
String registrarId,
@Nullable VKey<BillingEvent.OneTime> billingEventOneTime) {
return createInternal(
type, domainRepoId, expirationTime, registrarId, billingEventOneTime, null, null);
}
/**
* Creates a GracePeriod for an (optional) OneTime billing event and a given {@link
* #gracePeriodId}.
*
* <p>Normal callers should always use {@link #forBillingEvent} instead, assuming they do not need
* to avoid loading the BillingEvent from Datastore. This method should typically be called only
* from test code to explicitly construct GracePeriods.
*/
@VisibleForTesting
public static GracePeriod create(
GracePeriodStatus type,
String domainRepoId,
DateTime expirationTime,
String registrarId,
@Nullable VKey<BillingEvent.OneTime> billingEventOneTime,
@Nullable Long gracePeriodId) {
return createInternal(
type, domainRepoId, expirationTime, registrarId, billingEventOneTime, null, gracePeriodId);
}
public static GracePeriod createFromHistory(GracePeriodHistory history) {
return createInternal(
history.type,
history.domainRepoId,
history.expirationTime,
history.clientId,
history.billingEventOneTime == null ? null : history.billingEventOneTime.createVKey(),
history.billingEventRecurring == null ? null : history.billingEventRecurring.createVKey(),
history.gracePeriodId);
}
/** Creates a GracePeriod for a Recurring billing event. */
public static GracePeriod createForRecurring(
GracePeriodStatus type,
String domainRepoId,
DateTime expirationTime,
String registrarId,
VKey<Recurring> billingEventRecurring) {
checkArgumentNotNull(billingEventRecurring, "billingEventRecurring cannot be null");
return createInternal(
type, domainRepoId, expirationTime, registrarId, null, billingEventRecurring, null);
}
/** Creates a GracePeriod for a Recurring billing event and a given {@link #gracePeriodId}. */
@VisibleForTesting
public static GracePeriod createForRecurring(
GracePeriodStatus type,
String domainRepoId,
DateTime expirationTime,
String registrarId,
VKey<Recurring> billingEventRecurring,
@Nullable Long gracePeriodId) {
checkArgumentNotNull(billingEventRecurring, "billingEventRecurring cannot be null");
return createInternal(
type,
domainRepoId,
expirationTime,
registrarId,
null,
billingEventRecurring,
gracePeriodId);
}
/** Creates a GracePeriod with no billing event. */
public static GracePeriod createWithoutBillingEvent(
GracePeriodStatus type, String domainRepoId, DateTime expirationTime, String registrarId) {
return createInternal(type, domainRepoId, expirationTime, registrarId, null, null, null);
}
/** Constructs a GracePeriod of the given type from the provided one-time BillingEvent. */
public static GracePeriod forBillingEvent(
GracePeriodStatus type, String domainRepoId, BillingEvent.OneTime billingEvent) {
return create(
type,
domainRepoId,
billingEvent.getBillingTime(),
billingEvent.getRegistrarId(),
billingEvent.createVKey());
}
/**
* Returns a clone of this {@link GracePeriod} with {@link #domainRepoId} set to the given value
* and reconstructed history ids.
*
* <p>TODO(b/162739503): Remove this function after fully migrating to Cloud SQL.
*/
GracePeriod cloneAfterOfyLoad(String domainRepoId) {
GracePeriod clone = clone(this);
clone.domainRepoId = checkArgumentNotNull(domainRepoId);
return clone;
}
/**
* Returns a clone of this {@link GracePeriod} with {@link #billingEventRecurring} set to the
* given value.
*
* <p>TODO(b/162231099): Remove this function after duplicate id issue is solved.
*/
public GracePeriod cloneWithRecurringBillingEvent(VKey<BillingEvent.Recurring> recurring) {
GracePeriod clone = clone(this);
clone.billingEventRecurring = BillingRecurrenceVKey.create(recurring);
return clone;
}
/** Entity class to represent a historic {@link GracePeriod}. */
@Entity(name = "GracePeriodHistory")
@Table(indexes = @Index(columnList = "domainRepoId"))
static class GracePeriodHistory extends GracePeriodBase implements SqlOnlyEntity {
@Id Long gracePeriodHistoryRevisionId;
/** ID for the associated {@link DomainHistory} entity. */
Long domainHistoryRevisionId;
@Override
@Access(AccessType.PROPERTY)
public long getGracePeriodId() {
return super.getGracePeriodId();
}
static GracePeriodHistory createFrom(long historyRevisionId, GracePeriod gracePeriod) {
GracePeriodHistory instance = new GracePeriodHistory();
instance.gracePeriodHistoryRevisionId = allocateId();
instance.domainHistoryRevisionId = historyRevisionId;
instance.gracePeriodId = gracePeriod.gracePeriodId;
instance.type = gracePeriod.type;
instance.domainRepoId = gracePeriod.domainRepoId;
instance.expirationTime = gracePeriod.expirationTime;
instance.clientId = gracePeriod.clientId;
instance.billingEventOneTime = gracePeriod.billingEventOneTime;
instance.billingEventRecurring = gracePeriod.billingEventRecurring;
return instance;
}
}
}
| 3,064 |
14,499 |
<reponame>JacobBarthelmeh/infer
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <stdlib.h>
void test() {
int* s = NULL;
*s = 42;
}
| 96 |
1,131 |
//
// 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 com.cloud.hypervisor.xenserver.resource.wrapper.xenbase;
import java.util.Hashtable;
import java.util.Set;
import org.reflections.Reflections;
import com.cloud.agent.api.Answer;
import com.cloud.agent.api.Command;
import com.cloud.hypervisor.xenserver.resource.CitrixResourceBase;
import com.cloud.hypervisor.xenserver.resource.XcpServerResource;
import com.cloud.hypervisor.xenserver.resource.XenServer56FP1Resource;
import com.cloud.hypervisor.xenserver.resource.XenServer56Resource;
import com.cloud.hypervisor.xenserver.resource.XenServer610Resource;
import com.cloud.hypervisor.xenserver.resource.XenServer620SP1Resource;
import com.cloud.resource.CommandWrapper;
import com.cloud.resource.RequestWrapper;
import com.cloud.resource.ServerResource;
public class CitrixRequestWrapper extends RequestWrapper {
private static CitrixRequestWrapper instance;
static {
instance = new CitrixRequestWrapper();
}
Reflections baseWrappers = new Reflections("com.cloud.hypervisor.xenserver.resource.wrapper.xenbase");
@SuppressWarnings("rawtypes")
Set<Class<? extends CommandWrapper>> baseSet = baseWrappers.getSubTypesOf(CommandWrapper.class);
Reflections xenServer56Wrappers = new Reflections("com.cloud.hypervisor.xenserver.resource.wrapper.xen56");
@SuppressWarnings("rawtypes")
Set<Class<? extends CommandWrapper>> xenServer56Set = xenServer56Wrappers.getSubTypesOf(CommandWrapper.class);
Reflections xenServer56P1Wrappers = new Reflections("com.cloud.hypervisor.xenserver.resource.wrapper.xen56p1");
@SuppressWarnings("rawtypes")
Set<Class<? extends CommandWrapper>> xenServer56P1Set = xenServer56P1Wrappers.getSubTypesOf(CommandWrapper.class);
Reflections xenServer610Wrappers = new Reflections("com.cloud.hypervisor.xenserver.resource.wrapper.xen610");
@SuppressWarnings("rawtypes")
Set<Class<? extends CommandWrapper>> xenServer610Set = xenServer610Wrappers.getSubTypesOf(CommandWrapper.class);
Reflections xenServer620SP1Wrappers = new Reflections("com.cloud.hypervisor.xenserver.resource.wrapper.xen620sp1");
@SuppressWarnings("rawtypes")
Set<Class<? extends CommandWrapper>> xenServer620SP1Set = xenServer620SP1Wrappers.getSubTypesOf(CommandWrapper.class);
Reflections xcpWrappers = new Reflections("com.cloud.hypervisor.xenserver.resource.wrapper.xcp");
@SuppressWarnings("rawtypes")
Set<Class<? extends CommandWrapper>> xcpSet = xcpWrappers.getSubTypesOf(CommandWrapper.class);
private CitrixRequestWrapper() {
init();
}
@SuppressWarnings("rawtypes")
private void init() {
final Hashtable<Class<? extends Command>, CommandWrapper> citrixCommands = processAnnotations(baseSet);
final Hashtable<Class<? extends Command>, CommandWrapper> xenServer56Commands = processAnnotations(xenServer56Set);
final Hashtable<Class<? extends Command>, CommandWrapper> xenServer56P1Commands = processAnnotations(xenServer56P1Set);
final Hashtable<Class<? extends Command>, CommandWrapper> xenServer610Commands = processAnnotations(xenServer610Set);
final Hashtable<Class<? extends Command>, CommandWrapper> xenServer620SP1Commands = processAnnotations(xenServer620SP1Set);
final Hashtable<Class<? extends Command>, CommandWrapper> xcpServerResourceCommand = processAnnotations(xcpSet);
// CitrixResourceBase commands
resources.put(CitrixResourceBase.class, citrixCommands);
// XenServer56Resource commands
resources.put(XenServer56Resource.class, xenServer56Commands);
// XenServer56FP1Resource commands
resources.put(XenServer56FP1Resource.class, xenServer56P1Commands);
// XenServer620SP1Resource commands
resources.put(XenServer620SP1Resource.class, xenServer620SP1Commands);
// XenServer610Resource commands
resources.put(XenServer610Resource.class, xenServer610Commands);
// XcpServerResource commands
resources.put(XcpServerResource.class, xcpServerResourceCommand);
}
public static CitrixRequestWrapper getInstance() {
return instance;
}
@SuppressWarnings({"rawtypes" })
@Override
public Answer execute(final Command command, final ServerResource serverResource) {
final Class<? extends ServerResource> resourceClass = serverResource.getClass();
final Hashtable<Class<? extends Command>, CommandWrapper> resourceCommands = retrieveResource(command, resourceClass);
CommandWrapper<Command, Answer, ServerResource> commandWrapper = retrieveCommands(command.getClass(), resourceCommands);
while (commandWrapper == null) {
//Could not find the command in the given resource, will traverse the family tree.
commandWrapper = retryWhenAllFails(command, resourceClass, resourceCommands);
}
return commandWrapper.execute(command, serverResource);
}
}
| 1,809 |
468 |
<filename>examples/libc/x86_64/_types/_uint64_t.h
#ifndef __UINT64_T_H_
#define __UINT64_T_H_
typedef unsigned long long uint64_t;
#endif //__UINT64_T_H_
| 76 |
394 |
#include "switchfiltercommand.h"
#include "model/modellocator.h"
#include "gitlivkcmdevt.h"
#include <QDebug>
SwitchFilterCommand::SwitchFilterCommand(QObject *parent) :
GitlAbstractCommand(parent)
{
}
bool SwitchFilterCommand::execute(GitlCommandParameter &rcInputArg, GitlCommandParameter &rcOutputArg)
{
ModelLocator* pModel = ModelLocator::getInstance();
FilterLoader* pFilterLoader = &pModel->getDrawEngine().getFilterLoader();
QString strFiltername = rcInputArg.getParameter("filter_name").toString();
bool bEnable = rcInputArg.getParameter("filter_enable").toBool();
AbstractFilter* pcFilter = pFilterLoader->getFilterByName(strFiltername);
if( pcFilter == NULL )
{
qCritical() << QString("Cannot find filter %1").arg(strFiltername);
return false;
}
pcFilter->setEnable(bEnable);
/// refresh
GitlIvkCmdEvt cRefreshEvt("refresh_screen");
cRefreshEvt.dispatch();
///
rcOutputArg.setParameter("filter_names", QVariant::fromValue(pFilterLoader->getFilterNames()) );
rcOutputArg.setParameter("filter_status", QVariant::fromValue(pFilterLoader->getEnableStatus()) );
return true;
}
| 441 |
2,151 |
#ifdef _MSC_VER
__declspec(dllexport)
#else
__attribute__((visibility("default")))
#endif
int foo() {
return 42;
}
| 47 |
575 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/user_education/active_tab_tracker.h"
#include <utility>
#include "base/time/tick_clock.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
ActiveTabTracker::ActiveTabTracker(const base::TickClock* clock,
ActiveTabClosedCallback callback)
: clock_(clock), active_tab_closed_callback_(std::move(callback)) {
DCHECK(active_tab_closed_callback_);
}
ActiveTabTracker::~ActiveTabTracker() {
// All tab strip models should have been removed before destruction.
DCHECK(active_tab_changed_times_.empty());
}
void ActiveTabTracker::AddTabStripModel(TabStripModel* tab_strip_model) {
active_tab_changed_times_[tab_strip_model] = clock_->NowTicks();
tab_strip_model->AddObserver(this);
}
void ActiveTabTracker::RemoveTabStripModel(TabStripModel* tab_strip_model) {
// Get |std::map| iterator in |active_tab_changed_times_|.
auto it = active_tab_changed_times_.find(tab_strip_model);
DCHECK(it != active_tab_changed_times_.end());
// Stop observing and remove map element.
tab_strip_model->RemoveObserver(this);
active_tab_changed_times_.erase(it);
}
void ActiveTabTracker::OnTabStripModelChanged(
TabStripModel* model,
const TabStripModelChange& change,
const TabStripSelectionChange& selection) {
DCHECK(active_tab_changed_times_.find(model) !=
active_tab_changed_times_.end());
const int prev_active_tab_index = selection.old_model.active();
if (change.type() == TabStripModelChange::Type::kRemoved) {
auto* remove = change.GetRemove();
// If the closing tab was the active tab, call the callback.
// Ignore if the tab isn't being closed (this would happen if it were
// dragged to a different tab strip).
for (const auto& contents : remove->contents) {
if (contents.will_be_deleted &&
contents.index == prev_active_tab_index) {
active_tab_closed_callback_.Run(
model, clock_->NowTicks() - active_tab_changed_times_[model]);
}
}
}
if (selection.active_tab_changed())
active_tab_changed_times_[model] = clock_->NowTicks();
}
| 816 |
6,304 |
<filename>src/third_party/skia/src/ports/SkNDKConversions.cpp
/*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/ports/SkNDKConversions.h"
namespace {
static const struct {
SkColorType colorType;
AndroidBitmapFormat format;
} gColorTypeTable[] = {
{ kRGBA_8888_SkColorType, ANDROID_BITMAP_FORMAT_RGBA_8888 },
{ kRGBA_F16_SkColorType, ANDROID_BITMAP_FORMAT_RGBA_F16 },
{ kRGB_565_SkColorType, ANDROID_BITMAP_FORMAT_RGB_565 },
// Android allows using its alpha 8 format to get 8 bit gray pixels.
{ kGray_8_SkColorType, ANDROID_BITMAP_FORMAT_A_8 },
};
} // anonymous namespace
namespace SkNDKConversions {
AndroidBitmapFormat toAndroidBitmapFormat(SkColorType colorType) {
for (const auto& entry : gColorTypeTable) {
if (entry.colorType == colorType) {
return entry.format;
}
}
return ANDROID_BITMAP_FORMAT_NONE;
}
SkColorType toColorType(AndroidBitmapFormat format) {
for (const auto& entry : gColorTypeTable) {
if (entry.format == format) {
return entry.colorType;
}
}
return kUnknown_SkColorType;
}
} // SkNDKConversions
static constexpr skcms_TransferFunction k2Dot6 = {2.6f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};
static constexpr skcms_Matrix3x3 kDCIP3 = {{
{0.486143, 0.323835, 0.154234},
{0.226676, 0.710327, 0.0629966},
{0.000800549, 0.0432385, 0.78275},
}};
namespace {
static const struct {
ADataSpace dataSpace;
skcms_TransferFunction transferFunction;
skcms_Matrix3x3 gamut;
} gColorSpaceTable[] = {
{ ADATASPACE_SRGB, SkNamedTransferFn::kSRGB, SkNamedGamut::kSRGB },
{ ADATASPACE_SCRGB, SkNamedTransferFn::kSRGB, SkNamedGamut::kSRGB },
{ ADATASPACE_SCRGB_LINEAR, SkNamedTransferFn::kLinear, SkNamedGamut::kSRGB },
{ ADATASPACE_SRGB_LINEAR, SkNamedTransferFn::kLinear, SkNamedGamut::kSRGB },
{ ADATASPACE_ADOBE_RGB, SkNamedTransferFn::k2Dot2, SkNamedGamut::kAdobeRGB },
{ ADATASPACE_DISPLAY_P3, SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3 },
{ ADATASPACE_BT2020, SkNamedTransferFn::kRec2020, SkNamedGamut::kRec2020 },
{ ADATASPACE_BT709, SkNamedTransferFn::kRec2020, SkNamedGamut::kSRGB },
{ ADATASPACE_DCI_P3, k2Dot6, kDCIP3 },
};
} // anonymous namespace
static bool nearly_equal(float a, float b) {
return fabs(a - b) < .002f;
}
static bool nearly_equal(const skcms_TransferFunction& x, const skcms_TransferFunction& y) {
return nearly_equal(x.g, y.g)
&& nearly_equal(x.a, y.a)
&& nearly_equal(x.b, y.b)
&& nearly_equal(x.c, y.c)
&& nearly_equal(x.d, y.d)
&& nearly_equal(x.e, y.e)
&& nearly_equal(x.f, y.f);
}
static bool nearly_equal(const skcms_Matrix3x3& a, const skcms_Matrix3x3& b) {
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++) {
if (!nearly_equal(a.vals[i][j], b.vals[i][j])) return false;
}
return true;
}
namespace SkNDKConversions {
ADataSpace toDataSpace(SkColorSpace* cs) {
if (!cs) return ADATASPACE_SRGB;
skcms_TransferFunction fn;
skcms_Matrix3x3 gamut;
if (cs->isNumericalTransferFn(&fn) && cs->toXYZD50(&gamut)) {
for (const auto& entry : gColorSpaceTable) {
if (nearly_equal(gamut, entry.gamut) && nearly_equal(fn, entry.transferFunction)) {
return entry.dataSpace;
}
}
}
return ADATASPACE_UNKNOWN;
}
sk_sp<SkColorSpace> toColorSpace(ADataSpace dataSpace) {
for (const auto& entry : gColorSpaceTable) {
if (entry.dataSpace == dataSpace) {
return SkColorSpace::MakeRGB(entry.transferFunction, entry.gamut);
}
}
return nullptr;
}
}
| 1,929 |
4,054 |
<filename>searchlib/src/vespa/searchlib/fef/itablemanager.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "table.h"
namespace search {
namespace fef {
/**
* This is an interface used to access registered tables.
**/
class ITableManager
{
public:
/**
* Returns a const view of the table with the given name or NULL if not found.
**/
virtual const Table * getTable(const vespalib::string & name) const = 0;
/**
* Virtual destructor to allow safe subclassing.
**/
virtual ~ITableManager() {}
};
} // namespace fef
} // namespace search
| 215 |
524 |
#pragma once
#include "contentloader.h"
#include "../types/chat.h"
namespace Utils {
class MediaLoader;
}
namespace Ui
{
class DialogPlayer;
}
namespace Previewer
{
class GalleryItem;
class GalleryLoader : public ContentLoader
{
Q_OBJECT
public:
GalleryLoader(const QString& _aimId, const QString& _link, int64_t _msgId, Ui::DialogPlayer* _attachedPlayer = nullptr);
void next() override;
void prev() override ;
bool hasNext() override;
bool hasPrev() override;
ContentItem* currentItem() override;
virtual int currentIndex() const override;
virtual int totalCount() const override;
void cancelCurrentItemLoading() override;
void startCurrentItemLoading() override;
virtual bool navigationSupported() override { return true; }
void clear();
public Q_SLOTS:
void onItemLoaded(const QString &_link, int64_t _msgId);
void onPreviewLoaded(const QString &_link, int64_t _msgId);
void onItemError(const QString &_link, int64_t _msgId);
void dialogGalleryResult(const int64_t _seq, const QVector<Data::DialogGalleryEntry>& _entries, bool _exhausted);
void dialogGalleryResultByMsg(const int64_t _seq, const QVector<Data::DialogGalleryEntry>& _entries, int _index, int _total);
void dialogGalleryState(const QString& _aimId, const Data::DialogGalleryState& _state);
void dialogGalleryUpdate(const QString& _aimId, const QVector<Data::DialogGalleryEntry>& _entries);
void dialogGalleryInit(const QString& _aimId);
void dialogGalleryHoles(const QString& _aimId);
void dialogGalleryIndex(const QString& _aimId, qint64 _msg, qint64 _seq, int _index, int _total);
private:
enum class Direction { Previous, Next};
void move(Direction _direction);
void loadMore();
int64_t loadItems(int64_t _after, int64_t _seq, int _count);
void unload();
size_t loadDistance() { return 10; }
std::unique_ptr<GalleryItem> createItem(const QString& _link, qint64 _msg, qint64 _seq, time_t _time, const QString& _sender, const QString& _caption, Ui::DialogPlayer* _attachedPlayer = nullptr);
bool indexValid();
std::deque<std::unique_ptr<GalleryItem>> items_;
QString aimId_;
size_t current_;
int64_t firstItemSeq_;
int64_t frontLoadSeq_;
int64_t backLoadSeq_;
QString initialLink_;
bool exhaustedFront_;
bool exhaustedBack_;
int index_;
int total_;
};
class GalleryItem : public ContentItem
{
Q_OBJECT
public:
GalleryItem(const QString& _link, qint64 _msg, qint64 _seq, time_t _time, const QString& _sender, const QString& _aimid, const QString& _caption, Ui::DialogPlayer* _attachedPlayer = nullptr);
~GalleryItem();
qint64 msg() override { return msg_; }
qint64 seq() override { return seq_; }
void load();
void setMsg(qint64 _msg) { msg_ = _msg; }
void setSeq(qint64 _seq) { seq_ = _seq; }
void setTime(time_t _time) { time_ = _time; }
void setSender(const QString& _sender) { sender_ = _sender; }
void setCaption(const QString& _caption) { caption_ = _caption; }
void setPath(const QString& _path) { path_ = _path; }
QString link() const override { return link_; }
QString path() const override { return path_; }
QString fileName() const override;
QPixmap preview() const override { return preview_; }
QSize originSize() const override { return originSize_; }
bool isVideo() const override;
void loadFullMedia();
void cancelLoading();
void showMedia(ImageViewerWidget* _viewer) override;
void showPreview(ImageViewerWidget* _viewer) override;
void save(const QString& _path) override;
void copyToClipboard() override;
virtual time_t time() const override { return time_; }
virtual QString sender() const override { return sender_; }
virtual QString caption() const override { return caption_; }
virtual QString aimId() const override { return aimid_; }
Q_SIGNALS:
void loaded(const QString& _link, int64_t _msgId);
void previewLoaded(const QString& _link, int64_t _msgId);
void error(const QString& _link, int64_t _msgId);
private Q_SLOTS:
void onFileLoaded(const QString& _path);
void onPreviewLoaded(const QPixmap& _preview, const QSize& _originSize);
void onItemError();
private:
QString link_;
QPixmap preview_;
QString path_;
QSize originSize_;
std::unique_ptr<Utils::MediaLoader> loader_;
qint64 msg_;
qint64 seq_;
time_t time_;
QString sender_;
QPointer<Ui::DialogPlayer> attachedPlayer_;
bool attachedPlayerShown_;
QString aimid_;
QString caption_;
};
}
| 1,669 |
328 |
<gh_stars>100-1000
package com.dragon.flow.config;
import com.dragon.tools.common.SpringContextHolder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @program: flow
* @description: 流程配置
* @author: Bruce.Liu
* @create: 2021-04-01 23:36
**/
@Configuration
public class FlowConfig {
@Bean
public SpringContextHolder springContextHolder() {
SpringContextHolder springContextHolder = new SpringContextHolder();
return springContextHolder;
}
}
| 191 |
348 |
{"nom":"Velaine-sous-Amance","circ":"1ère circonscription","dpt":"Meurthe-et-Moselle","inscrits":242,"abs":123,"votants":119,"blancs":12,"nuls":3,"exp":104,"res":[{"nuance":"SOC","nom":"Mme <NAME>","voix":53},{"nuance":"REM","nom":"Mme <NAME>","voix":51}]}
| 105 |
922 |
//
// SCPDownload.h
// macSVG
//
// Created by <NAME> on 8/12/13.
//
//
// adapted from -
//
// DFSSHWrapper
//
// Created by <NAME> on 23/10/2011.
// Copyright 2011 Home. All rights reserved.
//
// and libssh2 - http://libssh2.org
#import <Foundation/Foundation.h>
@interface SCPDownload : NSObject
- (NSData *)execSCPDownloadHostaddr:(NSString *)hostaddrString user:(NSString *)usernameString password:(NSString *)passwordString
scppath:(NSString *)scppathString sshError:(NSError **)sshError;
@end
| 192 |
1,127 |
<reponame>si-eun-kim/openvino
// Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include "intel_gpu/primitives/roll.hpp"
#include "test_utils.h"
namespace cldnn {
template <>
struct type_to_data_type<FLOAT16> {
static const data_types value = data_types::f16;
};
} // namespace cldnn
using namespace cldnn;
using namespace tests;
namespace {
template <typename vecElementType>
std::string vec2str(const std::vector<vecElementType>& vec) {
if (!vec.empty()) {
std::ostringstream result;
result << "(";
std::copy(vec.begin(), vec.end() - 1, std::ostream_iterator<vecElementType>(result, "."));
result << vec.back() << ")";
return result.str();
}
return "()";
}
template <class T>
struct roll_test_params {
std::vector<int32_t> input_shape;
std::vector<T> input_values;
std::vector<int32_t> shift;
std::vector<T> expected_values;
};
template <class T>
struct roll_test : testing::TestWithParam<roll_test_params<T>> {
void test() {
auto p = testing::TestWithParam<roll_test_params<T>>::GetParam();
auto& engine = get_test_engine();
const auto input_format = format::get_default_format(p.input_shape.size());
const layout data_layout(type_to_data_type<T>::value, input_format, tensor(input_format, p.input_shape));
auto input = engine.allocate_memory(data_layout);
set_values(input, p.input_values);
topology topology;
topology.add(input_layout("input", input->get_layout()));
topology.add(roll("roll", "input", tensor(input_format, p.shift)));
network network(engine, topology);
network.set_input_data("input", input);
const auto outputs = network.execute();
EXPECT_EQ(outputs.size(), size_t(1));
EXPECT_EQ(outputs.begin()->first, "roll");
auto output = outputs.at("roll").get_memory();
cldnn::mem_lock<T> output_ptr(output, get_test_stream());
ASSERT_EQ(output_ptr.size(), p.expected_values.size());
for (size_t i = 0; i < output_ptr.size(); ++i) {
EXPECT_NEAR(p.expected_values[i], output_ptr[i], 1e-5f);
}
}
static std::string PrintToStringParamName(const testing::TestParamInfo<roll_test_params<T>>& info) {
auto& p = info.param;
std::ostringstream result;
result << "InputShape=" << vec2str(p.input_shape) << "_";
result << "Precision=" << data_type_traits::name(type_to_data_type<T>::value) << "_";
result << "Shift=" << vec2str(p.shift);
return result.str();
}
};
template <class T>
std::vector<roll_test_params<T>> getRollParams() {
return {
// from reference tests
{{4, 3, 1, 1}, // Input shape
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}, // Input values
{2, 2, 0, 0}, // Shift
{8, 9, 7, 11, 12, 10, 2, 3, 1, 5, 6, 4}}, // Expected values
{{4, 2, 3, 1}, // Input shape
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}, // Input values
{0, 1, 1, 0}, // Shift
{6, 4, 5, 3, 1, 2, 12, 10, 11, 9, 7, 8, 18, 16, 17, 15, 13, 14, 24, 22, 23, 21, 19, 20}}, // Expected values
// from docs example
{{4, 3, 1, 1}, // Input shape
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}, // Input values
{1, 0, 0, 0}, // Shift
{10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9}}, // Expected values
// custom tests
// 4d
{{2, 3, 1, 2}, // Input shape
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}, // Input values
{1, 2, 0, 5}, // Shift
{10, 9, 12, 11, 8, 7, 4, 3, 6, 5, 2, 1}}, // Expected values
// 5d
{{1, 1, 3, 3, 2}, // Input shape
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}, // Input values
{1, 2, 10, 23, 6}, // Shift
{15, 16, 17, 18, 13, 14, 3, 4, 5, 6, 1, 2, 9, 10, 11, 12, 7, 8}}, // Expected values
// 6d
{{2, 1, 1, 3, 2, 3}, // Input shape
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, //
19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36}, // Input values
{0, 58, 27, 9, 99, 13}, // Shift
{6, 4, 5, 3, 1, 2, 12, 10, 11, 9, 7, 8, 18, 16, 17, 15, 13, 14,
24, 22, 23, 21, 19, 20, 30, 28, 29, 27, 25, 26, 0, 35, 36, 34, 32, 33}}, // Expected values
};
}
template <class T>
std::vector<roll_test_params<T>> getRollFloatingPointParams() {
return {
// from reference tests
{{4, 3, 1, 1}, // Input shape
{50.2907f,
70.8054f,
-68.3403f,
62.6444f,
4.9748f,
-18.5551f,
40.5383f,
-15.3859f,
-4.5881f,
-43.3479f,
94.1676f,
-95.7097f}, // Input values
{1, 0, 0, 0}, // Shift
{{-43.3479f,
94.1676f,
-95.7097f,
50.2907f,
70.8054f,
-68.3403f,
62.6444f,
4.9748f,
-18.5551f,
40.5383f,
-15.3859f,
-4.5881f}}}, // Expected values
{{4, 3, 1, 1}, // Input shape
{50.2907f,
70.8054f,
-68.3403f,
62.6444f,
4.9748f,
-18.5551f,
40.5383f,
-15.3859f,
-4.5881f,
-43.3479f,
94.1676f,
-95.7097f}, // Input values
{3, 2, 0, 0}, // Shift
{{4.9748f,
-18.5551f,
62.6444f,
-15.3859f,
-4.5881f,
40.5383f,
94.1676f,
-95.7097f,
-43.3479f,
70.8054f,
-68.3403f,
50.2907f}}}, // Expected values
{{4, 2, 3, 1}, // Input shape
{94.0773f, 33.0599f, 58.1724f, -20.3640f, 54.5372f, -54.3023f, 10.4662f, 11.7532f,
-11.7692f, 56.4223f, -95.3774f, 8.8978f, 1.9305f, 13.8025f, 12.0827f, 81.4669f,
19.5321f, -8.9553f, -75.3226f, 20.8033f, 20.7660f, 62.7361f, 14.9372f, -33.0825f}, // Input values
{2, 1, 3, 0}, // Shift
{{81.4669f, 19.5321f, -8.9553f, 1.9305f, 13.8025f, 12.0827f, 62.7361f, 14.9372f,
-33.0825f, -75.3226f, 20.8033f, 20.7660f, -20.3640f, 54.5372f, -54.3023f, 94.0773f,
33.0599f, 58.1724f, 56.4223f, -95.3774f, 8.8978f, 10.4662f, 11.7532f, -11.7692f}}}, // Expected values
};
}
#define INSTANTIATE_ROLL_TEST_SUITE(type, func) \
using roll_test_##type = roll_test<type>; \
TEST_P(roll_test_##type, roll_##type) { \
test(); \
} \
INSTANTIATE_TEST_SUITE_P(roll_smoke_##type, \
roll_test_##type, \
testing::ValuesIn(func<type>()), \
roll_test_##type::PrintToStringParamName);
INSTANTIATE_ROLL_TEST_SUITE(int8_t, getRollParams)
INSTANTIATE_ROLL_TEST_SUITE(uint8_t, getRollParams)
INSTANTIATE_ROLL_TEST_SUITE(int32_t, getRollParams)
INSTANTIATE_ROLL_TEST_SUITE(int64_t, getRollParams)
INSTANTIATE_ROLL_TEST_SUITE(FLOAT16, getRollFloatingPointParams)
INSTANTIATE_ROLL_TEST_SUITE(float, getRollFloatingPointParams)
#undef INSTANTIATE_ROLL_TEST_SUITE
} // namespace
| 4,925 |
1,689 |
<gh_stars>1000+
package org.hamcrest.object;
import org.hamcrest.Matcher;
import org.junit.Test;
import static org.hamcrest.AbstractMatcherTest.*;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.hamcrest.object.HasToString.hasToString;
public final class HasToStringTest {
private static final String TO_STRING_RESULT = "toString result";
private static final Object TEST_OBJECT = new Object() {
@Override
public String toString() {
return TO_STRING_RESULT;
}
};
@Test public void
copesWithNullsAndUnknownTypes() {
Matcher<Object> matcher = hasToString(equalTo("irrelevant"));
assertNullSafe(matcher);
assertUnknownTypeSafe(matcher);
}
@Test public void
matchesWhenUtilisingANestedMatcher() {
final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT));
assertMatches(matcher, TEST_OBJECT);
assertDoesNotMatch(matcher, new Object());
}
@Test public void
matchesWhenUsingShortcutForHasToStringEqualTo() {
final Matcher<Object> matcher = hasToString(TO_STRING_RESULT);
assertMatches(matcher, TEST_OBJECT);
assertDoesNotMatch(matcher, new Object());
}
@Test public void
describesItself() {
final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT));
assertDescription("with toString() \"toString result\"", matcher);
}
@Test public void
describesAMismatch() {
final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT));
String expectedMismatchString = "toString() was \"Cheese\"";
assertMismatchDescription(expectedMismatchString, matcher, "Cheese");
}
}
| 692 |
1,428 |
<reponame>kennethsequeira/Hello-world
#include<iostream>
using namespace std;
int main(){
int n;
cout<<"Give number of stations ";
cin>>n;
int a[2][n];
cout<<"Give ass1"<<endl;
for(int i=0;i<n;i++){
cin>>a[0][i];
}
cout<<"Give ass2"<<endl;
for(int i=0;i<n;i++){
cin>>a[1][i];
}
int t[2][n];
t[0][0]=0;t[1][0]=0;
cout<<"Give t1"<<endl;
for(int i=1;i<n;i++){
cin>>t[0][i];
}
cout<<"Give t2"<<endl;
for(int i=1;i<n;i++){
cin>>t[1][i];
}
int e1,e2,x1,x2;
cout<<"Five e1,e2,x1,x2 :";
cin>>e1>>e2>>x1>>x2;
int A[n],B[n];
A[0]=e1+a[0][0];
B[0]=e2+a[1][0];
int path1[n];
int path2[n];
for(int i=1;i<n;i++){
//A[i]=min(A[i-1]+a[0][i],B[i-1]+a[0][i]+t[1][i]);
//B[i]=min(B[i-1]+a[1][i],A[i-1]+a[1][i]+t[0][i]);
if(A[i-1]+a[0][i]<=B[i-1]+a[0][i]+t[1][i]){A[i]=A[i-1]+a[0][i]; path1[i]=1;}
else {A[i]=B[i-1]+a[0][i]+t[1][i]; path1[i]=2;}
if(B[i-1]+a[1][i]<=A[i-1]+a[1][i]+t[0][i]){B[i]=B[i-1]+a[1][i]; path2[i]=2;}
else {B[i]=A[i-1]+a[1][i]+t[0][i]; path2[i]=1;}
}
int pf;
if(A[n-1]+x1<=B[n-1]+x2) pf=1;
else pf=2;
int ans=min(A[n-1]+x1,B[n-1]+x2);
cout<<"Minimum cost is "<<ans<<endl;
cout<<"Path is :"<<endl;
cout<<"Part "<<n<<" on line "<<pf<<endl;
for(int j=n-1;j>0;j--){
if(pf==1) pf=path1[j];
else pf=path2[j];
cout<<"Part "<<j<<" on line "<<pf<<endl;
}
return 0;
}
| 812 |
372 |
/*
* Copyright 2013-2014 <NAME>
* 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.
*
* __________ _____ __ .__
* \______ \ ____ ____ ____ /\ / \ _____ | | _|__| ____ ____
* | | _// _ \ / _ \ / \ \/ / \ / \\__ \ | |/ / |/ \ / ___\
* | | ( <_> | <_> ) | \ /\ / Y \/ __ \| <| | | \/ /_/ >
* |______ /\____/ \____/|___| / \/ \____|__ (____ /__|_ \__|___| /\___ /
* \/ \/ \/ \/ \/ \//_____/
* ____. ___________ _____ ______________.___.
* | |____ ___ _______ \_ _____/ / _ \ / _____/\__ | |
* | \__ \\ \/ /\__ \ | __)_ / /_\ \ \_____ \ / | |
* /\__| |/ __ \\ / / __ \_ | \/ | \/ \ \____ |
* \________(____ /\_/ (____ / /_______ /\____|__ /_______ / / ______|
* \/ \/ \/ \/ \/ \/
*/
package org.boon.tests;
import junit.framework.Assert;
import org.boon.core.reflection.BeanUtils;
import org.boon.criteria.ObjectFilter;
import org.boon.datarepo.Repo;
import org.boon.criteria.internal.Visitor;
import org.boon.tests.model.Employee;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import java.util.Map;
import static junit.framework.Assert.*;
import static org.boon.criteria.ProjectedSelector.max;
import static org.boon.criteria.Selector.*;
import static org.boon.criteria.Update.set;
import static org.boon.criteria.Update.update;
import static org.boon.tests.model.Employee.employee;
import static org.boon.core.reflection.BeanUtils.idx;
public class RepoDefaultTest {
Repo<String, Employee> repo;
@Before
public void setup() {
repo = TestHelper.createFromBuilder();
}
@Test
public void testGet() throws Exception {
Employee employee = repo.get( TestHelper.getTestSSN );
assertNotNull( "employee should not be null", employee );
String firstName = employee.getFirstName();
assertEquals( "firstName should be this", TestHelper.getTestFirstName, firstName );
}
@Test
public void testAdd() throws Exception {
Employee emp = employee( "Diana", "Hightower", "21785999", "08.15.82", 100_000 );
repo.add( emp );
assertNotNull( repo.get( "21785999" ) );
//assertNotSame(emp, repo.get("21785999"));
repo.delete( emp );
assertNull( "We were able to remove emp", repo.get( "21785999" ) );
}
@Test
public void testRemove() throws Exception {
Employee emp = employee( "Diana", "Hightower", "21785999", "08.15.82", 100_000 );
repo.add( emp );
assertNotNull( repo.get( "21785999" ) );
repo.delete( emp );
assertNull( "We were able to remove emp", repo.get( "21785999" ) );
}
@Test
public void testModify() throws Exception {
Employee emp = employee( "Diana", "Hightower", "21785999", "08.15.82", 100_000 );
repo.add( emp );
assertNotNull( repo.get( "21785999" ) );
repo.modify( emp, "firstName", "Di" );
String firstName = repo.get( "21785999" ).getFirstName();
assertEquals( "firstName equals", "Di", firstName );
assertEquals( "Test that the search index is rebuilt", "Di",
repo.query( ObjectFilter.eq( "firstName", "Di" ) ).get( 0 ).getFirstName() );
}
@Test
public void testUpdateByKey() throws Exception {
Employee emp = employee( "Diana", "Hightower", "21785999", "08.15.82", 100_000 );
repo.add( emp );
assertNotNull( repo.get( "21785999" ) );
repo.update( emp.getSsn(), "firstName", "Di" );
String firstName = repo.get( "21785999" ).getFirstName();
assertEquals( "firstName equals", "Di", firstName );
assertEquals( "Test that the search index is rebuilt", "Di",
repo.query( ObjectFilter.eq( "firstName", "Di" ) ).get( 0 ).getFirstName() );
}
@Test
public void testUpdateByKeyUsingValues() throws Exception {
Employee emp = employee( "Diana", "Hightower", "217859991", "08.15.82", 100_000 );
repo.add( emp );
assertNotNull( repo.get( "217859991" ) );
repo.update( emp.getSsn(), set( "firstName", "Di" ) );
String firstName = repo.get( "217859991" ).getFirstName();
assertEquals( "firstName equals", "Di", firstName );
assertEquals( "Test that the search index is rebuilt", "Di",
repo.query( ObjectFilter.eq( "firstName", "Di" ) ).get( 0 ).getFirstName() );
}
@Test
public void testUpdateByFilter() throws Exception {
Employee emp = employee( "Diana", "Hightower", "217859992", "08.15.82", 100_000 );
repo.add( emp );
assertNotNull( repo.get( "217859992" ) );
repo.updateByFilter( "firstName", "Di",
ObjectFilter.eq( "firstName", "Diana" ),
ObjectFilter.eq( "lastName", "Hightower" ),
ObjectFilter.eq( "id", "217859992" ) );
String firstName = repo.get( "217859992" ).getFirstName();
assertEquals( "firstName equals", "Di", firstName );
assertEquals( "Test that the search index is rebuilt", "Di",
repo.query( ObjectFilter.eq( "firstName", "Di" ) ).get( 0 ).getFirstName() );
}
@Test
public void testUpdateByFilterUsingValues() throws Exception {
Employee emp = employee( "Diana", "Hightower", "2178599917788", "08.15.82", 100_000 );
repo.add( emp );
assertNotNull( repo.get( "2178599917788" ) );
repo.updateByFilter( update( set( "firstName", "Di" ) ),
ObjectFilter.eq( "firstName", "Diana" ),
ObjectFilter.eq( "lastName", "Hightower" ),
ObjectFilter.eq( "id", "2178599917788" ) );
String firstName = repo.get( "2178599917788" ).getFirstName();
assertEquals( "firstName equals", "Di", firstName );
assertEquals( "Test that the search index is rebuilt", "Di",
repo.query( ObjectFilter.eq( "firstName", "Di" ) ).get( 0 ).getFirstName() );
}
@Test
public void testEasyFilter2() throws Exception {
Employee emp = employee( "Dianazzz", "Hightower", "8178599912", "08.15.82", 100_000 );
repo.add( emp );
emp = employee( "Dianazzz", "Hightower", "8178599912", "08.15.82", 100_000 );
repo.add( emp );
List<Employee> employees = repo.query( ObjectFilter.eq( "firstName", "Dianazzz" ) );
assertNotNull( employees );
assertEquals( 1, employees.size() );
assertEquals( "Dianazzz", employees.get( 0 ).getFirstName() );
}
@Test
public void testEasyFilter() throws Exception {
Employee emp = employee( "DianaSkywalker", "Hightower", "2178599912", "08.15.82", 100_000 );
repo.add( emp );
List<Employee> employees = repo.query( ObjectFilter.eq( "firstName", "DianaSkywalker" ) );
assertNotNull( employees );
assertEquals( 1, employees.size() );
assertEquals( "DianaSkywalker", employees.get( 0 ).getFirstName() );
}
@Test
public void testEasyFilterByMap() throws Exception {
Employee emp = employee( "Diana", "Hightower", "3178599912", "08.15.82", 100_000 );
repo.add( emp );
List<Map<String, Object>> employees = repo.queryAsMaps( ObjectFilter.eq( "firstName", "Diana" ) );
assertNotNull( employees );
assertEquals( 1, employees.size() );
assertEquals( "Diana", employees.get( 0 ).get( "firstName" ) );
}
@Test
public void testEasySelect() throws Exception {
Employee emp = employee( "Diana", "Hightower", "21785999661234", "08.15.82", 100_000 );
Employee emp2 = employee( "Bob", "Hightower", "217859901234", "08.15.82", 100_000 );
repo.modify( emp );
repo.modify( emp2 );
List<Map<String, Object>> list = repo.sortedQuery( "firstName", selects( select( "firstName" ) ), ObjectFilter.eq( "lastName", "Hightower" ) );
assertEquals( 2, list.size() );
assertEquals( "Bob", list.get( 0 ).get( "firstName" ) );
assertEquals( "Diana", list.get( 1 ).get( "firstName" ) );
}
@Test
public void testMax() throws Exception {
List<Map<String, Object>> list = repo.query( selects( max( "salary" ) ) );
assertEquals( 666_000, list.get( 0 ).get( "max.salary" ) );
}
@Test
public void testQueryOnUniqueIndex() throws Exception {
List<Map<String, Object>> list = repo.query( selects( select( "firstName" ) ), ObjectFilter.gt( "empNum", 5l ) );
assertNotNull( list );
assertTrue( list.size() > 1 );
}
@Test
public void testFieldPathSelect() throws Exception {
Employee emp = employee( "Diana", "Hightower", "2178599966", "08.15.82", 100_000 );
Employee emp2 = employee( "Bob", "Hightower", "21785990", "08.15.82", 100_000 );
repo.modify( emp );
repo.modify( emp2 );
List<Map<String, Object>> list = repo.query(
selects( select( "department", "name" ) ),
ObjectFilter.eq( "lastName", "Hightower" ) );
assertEquals( "engineering", list.get( 0 ).get( "department.name" ) );
assertEquals( "engineering", list.get( 1 ).get( "department.name" ) );
}
@Test
public void testFieldPathSelectToCollection() throws Exception {
Employee emp = employee( "Diana", "Hightower", "2178599966", "08.15.82", 100_000 );
Employee emp2 = employee( "Bob", "Hightower", "21785990", "08.15.82", 100_000 );
repo.add( emp );
repo.add( emp2 );
List<Map<String, Object>> list = repo.query(
selects( select( "tags", "name" ) ),
ObjectFilter.eq( "lastName", "Hightower" ) );
System.out.println( list.get( 0 ) );
Assert.assertEquals( "tag1", BeanUtils.idx ( list.get ( 0 ).get ( "tags.name" ), 0 ) );
}
@Test
public void testFieldPathSelectToCollection2() throws Exception {
Employee emp = employee( "Diana", "Hightower", "2178599966", "08.15.82", 100_000 );
Employee emp2 = employee( "Bob", "Hightower", "21785990", "08.15.82", 100_000 );
repo.add( emp );
repo.add( emp2 );
List<Map<String, Object>> list = repo.query(
selects( select( "tags", "metas", "name0" ) ),
ObjectFilter.eq( "lastName", "Hightower" ) );
Assert.assertEquals( "mtag1", BeanUtils.idx ( list.get ( 0 ).get ( "tags.metas.name0" ), 0 ) );
}
@Test
public void testFieldPathSelectToCollection3() throws Exception {
Employee emp = employee( "Diana", "Hightower", "2178599966", "08.15.82", 100_000 );
Employee emp2 = employee( "Bob", "Hightower", "21785990", "08.15.82", 100_000 );
repo.add( emp );
repo.add( emp2 );
List<Map<String, Object>> list = repo.query(
selects( select( "tags", "metas", "metas2", "name2" ) ),
ObjectFilter.eq( "lastName", "Hightower" ) );
Assert.assertEquals( "2tag1", BeanUtils.idx ( list.get ( 0 ).get ( "tags.metas.metas2.name2" ), 0 ) );
}
@Test
public void testIndexedLookup() throws Exception {
Employee emp = employee( "Diana", "Hightower", "2178599966", "08.15.82", 100_000 );
Employee emp2 = employee( "Bob", "Hightower", "21785990", "08.15.82", 100_000 );
repo.add( emp );
repo.add( emp2 );
}
@Test
public void testPropertyPathSelect() throws Exception {
Employee emp = employee( "Diana", "Hightower", "2178599966", "08.15.82", 100_000 );
Employee emp2 = employee( "Bob", "Hightower", "21785990", "08.15.82", 100_000 );
repo.add( emp );
repo.add( emp2 );
List<Map<String, Object>> list = repo.query(
selects( selectPropPath( "department", "name" ) ),
ObjectFilter.eq( "lastName", "Hightower" ) );
assertEquals( "engineering", list.get( 0 ).get( "department.name" ) );
assertEquals( "engineering", list.get( 1 ).get( "department.name" ) );
}
@Test
public void testEasySelectWithSort() throws Exception {
Employee emp = employee( "Diana", "Hightower", "2178599990", "08.15.82", 100_000 );
Employee emp2 = employee( "Bob", "Hightower", "2178599088", "08.15.82", 100_000 );
repo.add( emp );
repo.add( emp2 );
List<Map<String, Object>> list = repo.sortedQuery( "firstName", selects( select( "firstName" ) ), ObjectFilter.eq( "lastName", "Hightower" ) );
assertEquals( "Bob", list.get( 0 ).get( "firstName" ) );
assertEquals( "Diana", list.get( 1 ).get( "firstName" ) );
}
@Test
public void testHarderFilter() throws Exception {
Employee emp = employee( "Diana222", "Hightower", "217859997", "08.15.82", 100_000 );
repo.add( emp );
List<Employee> employees = repo.query(
ObjectFilter.eq( "firstName", "Diana222" ), ObjectFilter.eq( "lastName", "Hightower" ), ObjectFilter.eq( "id", "217859997" ) );
assertNotNull( employees );
assertEquals( 1, employees.size() );
assertEquals( "Diana222", employees.get( 0 ).getFirstName() );
}
@Test
public void testFilterLogicalOperators() throws Exception {
List<Employee> employees = repo.query(
ObjectFilter.startsWith( "firstName", "Bob" ), ObjectFilter.eq( "lastName", "Smith" ),
ObjectFilter.lte( "salary", 200_000 ), ObjectFilter.gte( "salary", 190_000 ) );
assertNotNull( employees );
assertEquals( 1, employees.size() );
assertEquals( "Bob", employees.get( 0 ).getFirstName() );
assertEquals( "222-222-2222", employees.get( 0 ).getSsn() );
}
@Test
public void testFilterLogicalOperators2() throws Exception {
List<Employee> employees = repo.query(
ObjectFilter.startsWith( "firstName", "Bob" ),
ObjectFilter.eq( "lastName", "Smith" ),
ObjectFilter.lt( "salary", 200_000 ),
ObjectFilter.gt( "salary", 190_000 ) );
assertNotNull( employees );
assertEquals( 1, employees.size() );
assertEquals( "Bob", employees.get( 0 ).getFirstName() );
assertEquals( "222-222-2222", employees.get( 0 ).getSsn() );
}
@Test
public void testFilterLT() throws Exception {
List<Employee> employees = repo.query(
ObjectFilter.gt( "salary", 200_000 ), ObjectFilter.eq( "lastName", "Smith" ) );
assertNotNull( employees );
assertEquals( 1, employees.size() );
assertEquals( "Bobbzie", employees.get( 0 ).getFirstName() );
assertEquals( "422-222-2222", employees.get( 0 ).getSsn() );
}
@Test
public void testFilterLogicalOperators3() throws Exception {
List<Employee> employees = repo.query(
ObjectFilter.startsWith( "firstName", "Bob" ), ObjectFilter.eq( "lastName", "Smith" ), ObjectFilter.between( "salary", 190_000, 200_000 ) );
assertNotNull( employees );
assertEquals( 1, employees.size() );
assertEquals( "Bob", employees.get( 0 ).getFirstName() );
assertEquals( "222-222-2222", employees.get( 0 ).getSsn() );
}
@Test
public void testFieldPathSelectToCollection4() throws Exception {
Employee emp = employee( "Diana", "Hightower", "asdf", "08.15.82", 100_000 );
Employee emp2 = employee( "Bob", "Hightower", "217asdfasdfasdf85990", "08.15.82", 100_000 );
repo.add( emp );
repo.add( emp2 );
List<Map<String, Object>> list = repo.query(
selects( select( "tags", "metas", "metas2", "metas3", "name3" ) ),
ObjectFilter.eq( "lastName", "Hightower" ) );
//rint("listStream", listStream);
Assert.assertEquals( "3tag1", BeanUtils.idx ( list.get ( 0 ).get ( "tags.metas.metas2.metas3.name3" ), 0 ) );
}
@Test
public void testVisitor() throws Exception {
repo.query( new Visitor<String, Employee>() {
@Override
public void visit( String s, Employee employee, Object currentProperty, List<String> propertyPath ) {
System.out.printf( "VISITOR TEST key %s, \t employee=%s \t \n currentProperty=%s \t \npath=%s\n\n", s, employee, currentProperty, propertyPath );
}
} );
}
@Test
public void testClear() {
Employee emp = employee( "Clear", "Day", "asdf", "08.15.72", 70_000 );
repo.add( emp );
assertTrue( repo.size() > 1 );
repo.clear();
assertEquals( 0, repo.size() );
}
}
| 7,489 |
372 |
<reponame>tizenorg/platform.upstream.krb5<gh_stars>100-1000
/*
* Copyright 2008 Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obtain such a license before exporting.
*
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
* distribute this software and its documentation for any purpose and
* without fee is hereby granted, provided that the above copyright
* notice appear in all copies and that both that copyright notice and
* this permission notice appear in supporting documentation, and that
* the name of M.I.T. not be used in advertising or publicity pertaining
* to distribution of the software without specific, written prior
* permission. Furthermore if you modify this software you must label
* your software as modified software and not distribute it in such a
* fashion that it might be confused with the original M.I.T. software.
* M.I.T. makes no representations about the suitability of
* this software for any purpose. It is provided "as is" without express
* or implied warranty.
*/
#import <Cocoa/Cocoa.h>
#import <Kerberos/kim.h>
#define kCheckinMessage 100
@interface KerberosAgentListener : NSObject {
NSThread *thread;
}
@property (readwrite, retain) NSThread *thread;
+ (KerberosAgentListener *) sharedListener;
+ (void) startListening;
- (void) threadMain;
+ (void) addClientWithPort: (mach_port_t) client_port
replyPort: (mach_port_t) reply_port
name: (kim_string) name
path: (kim_string) path;
// contains reply_port
+ (void) didAddClient: (NSDictionary *) info
error: (int32_t) error;
+ (void) enterIdentityWithClientPort: (mach_port_t) client_port
replyPort: (mach_port_t) reply_port
options: (kim_options) options;
// contains reply_port, kim_identity
+ (void) didEnterIdentity: (NSDictionary *) info
error: (int32_t) error;
+ (void) selectIdentityWithClientPort: (mach_port_t) client_port
replyPort: (mach_port_t) reply_port
hints: (kim_selection_hints) hints;
// contains reply_port, kim_identity
+ (void) didSelectIdentity: (NSDictionary *) info
error: (int32_t) error;
+ (void) promptForAuthWithClientPort: (mach_port_t) client_port
replyPort: (mach_port_t) reply_port
identity: (kim_string) identity_string
promptType: (uint32_t) prompt_type
allowSave: (kim_boolean) allow_save
hideReply: (kim_boolean) hide_reply
title: (kim_string) title
message: (kim_string) message
description: (kim_string) description;
// contains reply_port, (string) prompt_response
+ (void) didPromptForAuth: (NSDictionary *) info
error: (int32_t) error;
+ (void) changePasswordWithClientPort: (mach_port_t) client_port
replyPort: (mach_port_t) reply_port
identity: (kim_string) identity_string
expired: (kim_boolean) expired;
// contains reply_port, old password, new password, verify password
+ (void) didChangePassword: (NSDictionary *) info
error: (int32_t) error;
+ (void) handleErrorWithClientPort: (mach_port_t) client_port
replyPort: (mach_port_t) reply_port
identity: (kim_string) identity_string
error: (kim_error) error
message: (kim_string) message
description: (kim_string) description;
// contains reply_port
+ (void) didHandleError: (NSDictionary *) info
error: (int32_t) error;
+ (void) removeClientMatchingPort: (mach_port_t) client_port
replyPort: (mach_port_t) reply_port;
+ (void) didRemoveClient: (NSDictionary *)info
error: (int32_t) error;
@end
| 1,864 |
334 |
<gh_stars>100-1000
"""Handle package compatibility."""
try:
from dse import cqlengine
from dse.cluster import Session, Cluster
from dse.cqlengine import columns, connection, CQLEngineException, query, management
from dse.auth import PlainTextAuthProvider
from dse.cqlengine.management import create_keyspace_simple, drop_keyspace
from dse.cqlengine.models import (
ModelMetaClass, ModelException, ColumnDescriptor,
ModelDefinitionException, BaseModel, Model
)
from dse.util import OrderedDict
except ImportError:
try:
from cassandra import cqlengine
from cassandra.cluster import Session, Cluster
from cassandra.cqlengine import columns, connection, CQLEngineException, query, management
from cassandra.auth import PlainTextAuthProvider
from cassandra.cqlengine.management import create_keyspace_simple, drop_keyspace
from cassandra.cqlengine.models import (
ModelMetaClass, ModelException, ColumnDescriptor,
ModelDefinitionException, BaseModel, Model
)
from cassandra.util import OrderedDict
except ImportError:
raise ImportError('You must install either dse-driver or '
+ 'cassandra-driver!')
| 464 |
592 |
{
"layers": {
"AMSRE_Soil_Moisture_SCA_Day": {
"id": "AMSRE_Soil_Moisture_SCA_Day",
"title": "Soil Moisture (Single Channel Algorithm, Day)",
"subtitle": "Aqua / AMSR-E",
"description": "amsre/AMSRE_Soil_Moisture_SCA_Day",
"group": "overlays",
"tags": "soil moisture sca",
"layergroup": "Soil Moisture",
"inactive": true,
"tracks": [
"OrbitTracks_Aqua_Ascending"
],
"daynight": [
"day"
]
}
}
}
| 260 |
14,668 |
<reponame>chromium/chromium<filename>chrome/browser/ui/user_education/tutorial/tutorial_test_util.h
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_USER_EDUCATION_TUTORIAL_TUTORIAL_TEST_UTIL_H_
#define CHROME_BROWSER_UI_USER_EDUCATION_TUTORIAL_TUTORIAL_TEST_UTIL_H_
#include "chrome/browser/ui/user_education/tutorial/tutorial_test_util.h"
#include "base/bind.h"
#include "chrome/browser/ui/user_education/tutorial/tutorial_bubble.h"
#include "chrome/browser/ui/user_education/tutorial/tutorial_bubble_factory.h"
#include "chrome/browser/ui/user_education/tutorial/tutorial_description.h"
#include "ui/base/interaction/element_tracker.h"
class TestTutorialBubble : public TutorialBubble {};
class TestTutorialBubbleFactory : public TutorialBubbleFactory {
public:
std::unique_ptr<TutorialBubble> CreateBubble(
ui::TrackedElement* element,
absl::optional<std::u16string> title_text,
absl::optional<std::u16string> body_text,
TutorialDescription::Step::Arrow arrow,
absl::optional<std::pair<int, int>> progress,
base::RepeatingClosure abort_callback,
bool is_last_step = false) override;
bool CanBuildBubbleForTrackedElement(ui::TrackedElement* element) override;
};
#endif // CHROME_BROWSER_UI_USER_EDUCATION_TUTORIAL_TUTORIAL_TEST_UTIL_H_
| 530 |
376 |
<gh_stars>100-1000
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//AES CCM Mode Encryption
namespace CcmTasksKsgen{ ///<Start generation of key-stream. This operation will stop by itself when completed.
using Addr = Register::Address<0x4000f000,0xffffffff,0x00000000,unsigned>;
}
namespace CcmTasksCrypt{ ///<Start encryption/decryption. This operation will stop by itself when completed.
using Addr = Register::Address<0x4000f004,0xffffffff,0x00000000,unsigned>;
}
namespace CcmTasksStop{ ///<Stop encryption/decryption
using Addr = Register::Address<0x4000f008,0xffffffff,0x00000000,unsigned>;
}
namespace CcmEventsEndksgen{ ///<Key-stream generation complete
using Addr = Register::Address<0x4000f100,0xffffffff,0x00000000,unsigned>;
}
namespace CcmEventsEndcrypt{ ///<Encrypt/decrypt complete
using Addr = Register::Address<0x4000f104,0xffffffff,0x00000000,unsigned>;
}
namespace CcmEventsError{ ///<CCM error event
using Addr = Register::Address<0x4000f108,0xffffffff,0x00000000,unsigned>;
}
namespace CcmShorts{ ///<Shortcut register
using Addr = Register::Address<0x4000f200,0xfffffffe,0x00000000,unsigned>;
///Shortcut between EVENTS_ENDKSGEN event and TASKS_CRYPT task
enum class EndksgencryptVal {
disabled=0x00000000, ///<Disable shortcut
enabled=0x00000001, ///<Enable shortcut
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,EndksgencryptVal> endksgenCrypt{};
namespace EndksgencryptValC{
constexpr Register::FieldValue<decltype(endksgenCrypt)::Type,EndksgencryptVal::disabled> disabled{};
constexpr Register::FieldValue<decltype(endksgenCrypt)::Type,EndksgencryptVal::enabled> enabled{};
}
}
namespace CcmIntenset{ ///<Enable interrupt
using Addr = Register::Address<0x4000f304,0xfffffff8,0x00000000,unsigned>;
///Write '1' to Enable interrupt on EVENTS_ENDKSGEN event
enum class EndksgenVal {
disabled=0x00000000, ///<Read: Disabled
enabled=0x00000001, ///<Read: Enabled
set=0x00000001, ///<Enable
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,EndksgenVal> endksgen{};
namespace EndksgenValC{
constexpr Register::FieldValue<decltype(endksgen)::Type,EndksgenVal::disabled> disabled{};
constexpr Register::FieldValue<decltype(endksgen)::Type,EndksgenVal::enabled> enabled{};
constexpr Register::FieldValue<decltype(endksgen)::Type,EndksgenVal::set> set{};
}
///Write '1' to Enable interrupt on EVENTS_ENDCRYPT event
enum class EndcryptVal {
disabled=0x00000000, ///<Read: Disabled
enabled=0x00000001, ///<Read: Enabled
set=0x00000001, ///<Enable
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,EndcryptVal> endcrypt{};
namespace EndcryptValC{
constexpr Register::FieldValue<decltype(endcrypt)::Type,EndcryptVal::disabled> disabled{};
constexpr Register::FieldValue<decltype(endcrypt)::Type,EndcryptVal::enabled> enabled{};
constexpr Register::FieldValue<decltype(endcrypt)::Type,EndcryptVal::set> set{};
}
///Write '1' to Enable interrupt on EVENTS_ERROR event
enum class ErrorVal {
disabled=0x00000000, ///<Read: Disabled
enabled=0x00000001, ///<Read: Enabled
set=0x00000001, ///<Enable
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,ErrorVal> error{};
namespace ErrorValC{
constexpr Register::FieldValue<decltype(error)::Type,ErrorVal::disabled> disabled{};
constexpr Register::FieldValue<decltype(error)::Type,ErrorVal::enabled> enabled{};
constexpr Register::FieldValue<decltype(error)::Type,ErrorVal::set> set{};
}
}
namespace CcmIntenclr{ ///<Disable interrupt
using Addr = Register::Address<0x4000f308,0xfffffff8,0x00000000,unsigned>;
///Write '1' to Clear interrupt on EVENTS_ENDKSGEN event
enum class EndksgenVal {
disabled=0x00000000, ///<Read: Disabled
enabled=0x00000001, ///<Read: Enabled
clear=0x00000001, ///<Disable
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,EndksgenVal> endksgen{};
namespace EndksgenValC{
constexpr Register::FieldValue<decltype(endksgen)::Type,EndksgenVal::disabled> disabled{};
constexpr Register::FieldValue<decltype(endksgen)::Type,EndksgenVal::enabled> enabled{};
constexpr Register::FieldValue<decltype(endksgen)::Type,EndksgenVal::clear> clear{};
}
///Write '1' to Clear interrupt on EVENTS_ENDCRYPT event
enum class EndcryptVal {
disabled=0x00000000, ///<Read: Disabled
enabled=0x00000001, ///<Read: Enabled
clear=0x00000001, ///<Disable
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,EndcryptVal> endcrypt{};
namespace EndcryptValC{
constexpr Register::FieldValue<decltype(endcrypt)::Type,EndcryptVal::disabled> disabled{};
constexpr Register::FieldValue<decltype(endcrypt)::Type,EndcryptVal::enabled> enabled{};
constexpr Register::FieldValue<decltype(endcrypt)::Type,EndcryptVal::clear> clear{};
}
///Write '1' to Clear interrupt on EVENTS_ERROR event
enum class ErrorVal {
disabled=0x00000000, ///<Read: Disabled
enabled=0x00000001, ///<Read: Enabled
clear=0x00000001, ///<Disable
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,ErrorVal> error{};
namespace ErrorValC{
constexpr Register::FieldValue<decltype(error)::Type,ErrorVal::disabled> disabled{};
constexpr Register::FieldValue<decltype(error)::Type,ErrorVal::enabled> enabled{};
constexpr Register::FieldValue<decltype(error)::Type,ErrorVal::clear> clear{};
}
}
namespace CcmMicstatus{ ///<MIC check result
using Addr = Register::Address<0x4000f400,0xfffffffe,0x00000000,unsigned>;
///The result of the MIC check performed during the previous decryption operation
enum class MicstatusVal {
checkfailed=0x00000000, ///<MIC check failed
checkpassed=0x00000001, ///<MIC check passed
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,MicstatusVal> micstatus{};
namespace MicstatusValC{
constexpr Register::FieldValue<decltype(micstatus)::Type,MicstatusVal::checkfailed> checkfailed{};
constexpr Register::FieldValue<decltype(micstatus)::Type,MicstatusVal::checkpassed> checkpassed{};
}
}
namespace CcmEnable{ ///<Enable
using Addr = Register::Address<0x4000f500,0xfffffffc,0x00000000,unsigned>;
///Enable or disable CCM
enum class EnableVal {
disabled=0x00000000, ///<Disable
enabled=0x00000002, ///<Enable
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,0),Register::ReadWriteAccess,EnableVal> enable{};
namespace EnableValC{
constexpr Register::FieldValue<decltype(enable)::Type,EnableVal::disabled> disabled{};
constexpr Register::FieldValue<decltype(enable)::Type,EnableVal::enabled> enabled{};
}
}
namespace CcmMode{ ///<Operation mode
using Addr = Register::Address<0x4000f504,0xfefefffe,0x00000000,unsigned>;
///The mode of operation to be used
enum class ModeVal {
encryption=0x00000000, ///<AES CCM packet encryption mode
decryption=0x00000001, ///<AES CCM packet decryption mode
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,ModeVal> mode{};
namespace ModeValC{
constexpr Register::FieldValue<decltype(mode)::Type,ModeVal::encryption> encryption{};
constexpr Register::FieldValue<decltype(mode)::Type,ModeVal::decryption> decryption{};
}
///Data rate that the CCM shall run in synch with
enum class DatarateVal {
v1mbit=0x00000000, ///<In synch with 1 Mbit data rate
v2mbit=0x00000001, ///<In synch with 2 Mbit data rate
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(16,16),Register::ReadWriteAccess,DatarateVal> datarate{};
namespace DatarateValC{
constexpr Register::FieldValue<decltype(datarate)::Type,DatarateVal::v1mbit> v1mbit{};
constexpr Register::FieldValue<decltype(datarate)::Type,DatarateVal::v2mbit> v2mbit{};
}
///Packet length configuration
enum class LengthVal {
default_=0x00000000, ///<Default length. Effective length of LENGTH field is 5-bit
extended=0x00000001, ///<Extended length. Effective length of LENGTH field is 8-bit
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(24,24),Register::ReadWriteAccess,LengthVal> length{};
namespace LengthValC{
constexpr Register::FieldValue<decltype(length)::Type,LengthVal::default_> default_{};
constexpr Register::FieldValue<decltype(length)::Type,LengthVal::extended> extended{};
}
}
namespace CcmCnfptr{ ///<Pointer to data structure holding AES key and NONCE vector
using Addr = Register::Address<0x4000f508,0x00000000,0x00000000,unsigned>;
///Pointer to the data structure holding the AES key and the CCM NONCE vector (see Table 1 CCM data structure overview)
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,0),Register::ReadWriteAccess,unsigned> cnfptr{};
}
namespace CcmInptr{ ///<Input pointer
using Addr = Register::Address<0x4000f50c,0x00000000,0x00000000,unsigned>;
///Input pointer
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,0),Register::ReadWriteAccess,unsigned> inptr{};
}
namespace CcmOutptr{ ///<Output pointer
using Addr = Register::Address<0x4000f510,0x00000000,0x00000000,unsigned>;
///Output pointer
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,0),Register::ReadWriteAccess,unsigned> outptr{};
}
namespace CcmScratchptr{ ///<Pointer to data area used for temporary storage
using Addr = Register::Address<0x4000f514,0x00000000,0x00000000,unsigned>;
///Pointer to a "scratch" data area used for temporary storage during key-stream generation, MIC generation and encryption/decryption.The scratch area is used for temporary storage of data during key-stream generation and encryption. A space of minimum 43 bytes must be reserved.
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,0),Register::ReadWriteAccess,unsigned> scratchptr{};
}
}
| 4,614 |
777 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This command-line program converts an effective-TLD data file in UTF-8 from
// the format provided by Mozilla to the format expected by Chrome. This
// program generates an intermediate file which is then used by gperf to
// generate a perfect hash map. The benefit of this approach is that no time is
// spent on program initialization to generate the map of this data.
//
// Running this program finds "effective_tld_names.dat" in the expected location
// in the source checkout and generates "effective_tld_names.gperf" next to it.
//
// Any errors or warnings from this program are recorded in tld_cleanup.log.
//
// In particular, it
// * Strips blank lines and comments, as well as notes for individual rules.
// * Strips a single leading and/or trailing dot from each rule, if present.
// * Logs a warning if a rule contains '!' or '*.' other than at the beginning
// of the rule. (This also catches multiple ! or *. at the start of a rule.)
// * Logs a warning if GURL reports a rule as invalid, but keeps the rule.
// * Canonicalizes each rule's domain by converting it to a GURL and back.
// * Adds explicit rules for true TLDs found in any rule.
// * Marks entries in the file between "// ===BEGIN PRIVATE DOMAINS==="
// and "// ===END PRIVATE DOMAINS===" as private.
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/i18n/icu_util.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/process/memory.h"
#include "net/tools/tld_cleanup/tld_cleanup_util.h"
int main(int argc, const char* argv[]) {
base::EnableTerminationOnHeapCorruption();
if (argc != 1) {
fprintf(stderr, "Normalizes and verifies UTF-8 TLD data files\n");
fprintf(stderr, "Usage: %s\n", argv[0]);
return 1;
}
// Manages the destruction of singletons.
base::AtExitManager exit_manager;
// Only use OutputDebugString in debug mode.
#ifdef NDEBUG
logging::LoggingDestination destination = logging::LOG_TO_FILE;
#else
logging::LoggingDestination destination =
logging::LOG_TO_ALL;
#endif
base::CommandLine::Init(argc, argv);
base::FilePath log_filename;
PathService::Get(base::DIR_EXE, &log_filename);
log_filename = log_filename.AppendASCII("tld_cleanup.log");
logging::LoggingSettings settings;
settings.logging_dest = destination;
settings.log_file = log_filename.value().c_str();
settings.delete_old = logging::DELETE_OLD_LOG_FILE;
logging::InitLogging(settings);
base::i18n::InitializeICU();
base::FilePath input_file;
PathService::Get(base::DIR_SOURCE_ROOT, &input_file);
input_file = input_file.Append(FILE_PATH_LITERAL("net"))
.Append(FILE_PATH_LITERAL("base"))
.Append(FILE_PATH_LITERAL(
"registry_controlled_domains"))
.Append(FILE_PATH_LITERAL("effective_tld_names.dat"));
base::FilePath output_file;
PathService::Get(base::DIR_SOURCE_ROOT, &output_file);
output_file = output_file.Append(FILE_PATH_LITERAL("net"))
.Append(FILE_PATH_LITERAL("base"))
.Append(FILE_PATH_LITERAL(
"registry_controlled_domains"))
.Append(FILE_PATH_LITERAL(
"effective_tld_names.gperf"));
net::tld_cleanup::NormalizeResult result =
net::tld_cleanup::NormalizeFile(input_file, output_file);
if (result != net::tld_cleanup::kSuccess) {
fprintf(stderr,
"Errors or warnings processing file. See log in tld_cleanup.log.");
}
if (result == net::tld_cleanup::kError)
return 1;
return 0;
}
| 1,474 |
2,151 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_MARKING_VISITOR_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_MARKING_VISITOR_H_
#include "third_party/blink/renderer/platform/heap/heap.h"
#include "third_party/blink/renderer/platform/heap/heap_buildflags.h"
#include "third_party/blink/renderer/platform/heap/heap_page.h"
#include "third_party/blink/renderer/platform/heap/visitor.h"
namespace blink {
class BasePage;
// Visitor used to mark Oilpan objects.
class PLATFORM_EXPORT MarkingVisitor final : public Visitor {
public:
enum MarkingMode {
// This is a default visitor. This is used for MarkingType=kAtomicMarking
// and MarkingType=kIncrementalMarking.
kGlobalMarking,
// This visitor just marks objects and ignores weak processing.
// This is used for MarkingType=kTakeSnapshot.
kSnapshotMarking,
// Perform global marking along with preparing for additional sweep
// compaction of heap arenas afterwards. Compared to the GlobalMarking
// visitor, this visitor will also register references to objects
// that might be moved during arena compaction -- the compaction
// pass will then fix up those references when the object move goes
// ahead.
kGlobalMarkingWithCompaction,
};
static std::unique_ptr<MarkingVisitor> Create(ThreadState*, MarkingMode);
// Write barrier that adds |value| to the set of marked objects. The barrier
// bails out if marking is off or the object is not yet marked.
ALWAYS_INLINE static void WriteBarrier(void* value);
// Eagerly traces an already marked backing store ensuring that all its
// children are discovered by the marker. The barrier bails out if marking
// is off and on individual objects reachable if they are already marked. The
// barrier uses the callback function through GcInfo, so it will not inline
// any templated type-specific code.
ALWAYS_INLINE static void TraceMarkedBackingStore(void* value);
MarkingVisitor(ThreadState*, MarkingMode);
~MarkingVisitor() override;
// Marking implementation.
// Conservatively marks an object if pointed to by Address.
void ConservativelyMarkAddress(BasePage*, Address);
#if DCHECK_IS_ON()
void ConservativelyMarkAddress(BasePage*,
Address,
MarkedPointerCallbackForTesting);
#endif // DCHECK_IS_ON()
// Marks an object and adds a tracing callback for processing of the object.
inline void MarkHeader(HeapObjectHeader*, TraceCallback);
// Try to mark an object without tracing. Returns true when the object was not
// marked upon calling.
inline bool MarkHeaderNoTracing(HeapObjectHeader*);
// Implementation of the visitor interface. See above for descriptions.
void Visit(void* object, TraceDescriptor desc) final {
DCHECK(object);
if (desc.base_object_payload == BlinkGC::kNotFullyConstructedObject) {
// This means that the objects are not-yet-fully-constructed. See comments
// on GarbageCollectedMixin for how those objects are handled.
not_fully_constructed_worklist_.Push(object);
return;
}
// Default mark method of the trait just calls the two-argument mark
// method on the visitor. The second argument is the static trace method
// of the trait, which by default calls the instance method
// trace(Visitor*) on the object.
//
// If the trait allows it, invoke the trace callback right here on the
// not-yet-marked object.
if (desc.can_trace_eagerly) {
// Protect against too deep trace call chains, and the
// unbounded system stack usage they can bring about.
//
// Assert against deep stacks so as to flush them out,
// but test and appropriately handle them should they occur
// in release builds.
//
// If you hit this assert, it means that you're creating an object
// graph that causes too many recursions, which might cause a stack
// overflow. To break the recursions, you need to add
// WILL_NOT_BE_EAGERLY_TRACED_CLASS() to classes that hold pointers
// that lead to many recursions.
DCHECK(Heap().GetStackFrameDepth().IsAcceptableStackUse());
if (LIKELY(Heap().GetStackFrameDepth().IsSafeToRecurse())) {
if (MarkHeaderNoTracing(
HeapObjectHeader::FromPayload(desc.base_object_payload))) {
desc.callback(this, desc.base_object_payload);
}
return;
}
}
MarkHeader(HeapObjectHeader::FromPayload(desc.base_object_payload),
desc.callback);
}
void Visit(void*, TraceWrapperDescriptor) final {
// Ignore as the object is also passed to Visit(void*, TraceDescriptor).
}
void VisitWeak(void* object,
void** object_slot,
TraceDescriptor desc,
WeakCallback callback) final {
RegisterWeakCallback(object_slot, callback);
}
void VisitBackingStoreStrongly(void* object,
void** object_slot,
TraceDescriptor desc) final {
RegisterBackingStoreReference(object_slot);
Visit(object, desc);
}
// All work is registered through RegisterWeakCallback.
void VisitBackingStoreWeakly(void* object,
void** object_slot,
TraceDescriptor desc,
WeakCallback callback,
void* parameter) final {
RegisterWeakCallback(parameter, callback);
}
// Used to only mark the backing store when it has been registered for weak
// processing. In this case, the contents are processed separately using
// the corresponding traits but the backing store requires marking.
void VisitBackingStoreOnly(void* object, void** object_slot) final {
MarkHeaderNoTracing(HeapObjectHeader::FromPayload(object));
RegisterBackingStoreReference(object_slot);
}
void RegisterBackingStoreCallback(void* backing_store,
MovingObjectCallback,
void* callback_data) final;
bool RegisterWeakTable(const void* closure,
EphemeronCallback iteration_callback) final;
void RegisterWeakCallback(void* closure, WeakCallback) final;
// Unused cross-component visit methods.
void Visit(const TraceWrapperV8Reference<v8::Value>&) final {}
void Visit(DOMWrapperMap<ScriptWrappable>*,
const ScriptWrappable* key) final {}
private:
// Exact version of the marking write barriers.
static void WriteBarrierSlow(void*);
static void TraceMarkedBackingStoreSlow(void*);
void RegisterBackingStoreReference(void* slot);
void ConservativelyMarkHeader(HeapObjectHeader*);
MarkingWorklist::View marking_worklist_;
NotFullyConstructedWorklist::View not_fully_constructed_worklist_;
WeakCallbackWorklist::View weak_callback_worklist_;
const MarkingMode marking_mode_;
};
inline bool MarkingVisitor::MarkHeaderNoTracing(HeapObjectHeader* header) {
DCHECK(header);
DCHECK(State()->InAtomicMarkingPause() || State()->IsIncrementalMarking());
// A GC should only mark the objects that belong in its heap.
DCHECK_EQ(State(),
PageFromObject(header->Payload())->Arena()->GetThreadState());
// Never mark free space objects. This would e.g. hint to marking a promptly
// freed backing store.
DCHECK(!header->IsFree());
return header->TryMark();
}
inline void MarkingVisitor::MarkHeader(HeapObjectHeader* header,
TraceCallback callback) {
DCHECK(header);
DCHECK(callback);
if (MarkHeaderNoTracing(header)) {
marking_worklist_.Push(
{reinterpret_cast<void*>(header->Payload()), callback});
}
}
ALWAYS_INLINE void MarkingVisitor::WriteBarrier(void* value) {
#if BUILDFLAG(BLINK_HEAP_INCREMENTAL_MARKING)
if (!ThreadState::IsAnyIncrementalMarking())
return;
// Avoid any further checks and dispatch to a call at this point. Aggressive
// inlining otherwise pollutes the regular execution paths.
WriteBarrierSlow(value);
#endif // BUILDFLAG(BLINK_HEAP_INCREMENTAL_MARKING)
}
ALWAYS_INLINE void MarkingVisitor::TraceMarkedBackingStore(void* value) {
#if BUILDFLAG(BLINK_HEAP_INCREMENTAL_MARKING)
if (!ThreadState::IsAnyIncrementalMarking())
return;
// Avoid any further checks and dispatch to a call at this point. Aggressive
// inlining otherwise pollutes the regular execution paths.
TraceMarkedBackingStoreSlow(value);
#endif // BUILDFLAG(BLINK_HEAP_INCREMENTAL_MARKING)
}
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_HEAP_MARKING_VISITOR_H_
| 3,060 |
2,151 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_IMAGE_IO_SURFACE_EGL_H_
#define UI_GL_GL_IMAGE_IO_SURFACE_EGL_H_
#include "ui/gl/gl_image_io_surface.h"
#include <egl/EGL.h>
namespace gl {
// Implements a IOSurface-backed GLImage that uses the
// EGL_ANGLE_iosurface_client_buffer extension to bind the IOSurface to textures
class GL_EXPORT GLImageIOSurfaceEGL : public GLImageIOSurface {
public:
GLImageIOSurfaceEGL(const gfx::Size& size, unsigned internalformat);
void ReleaseTexImage(unsigned target) override;
protected:
~GLImageIOSurfaceEGL() override;
bool BindTexImageImpl(unsigned internalformat) override;
bool CopyTexImage(unsigned target) override;
private:
EGLDisplay display_;
EGLSurface pbuffer_;
EGLConfig dummy_config_;
bool texture_bound_;
};
} // namespace gl
#endif // UI_GL_GL_IMAGE_IO_SURFACE_EGL_H_
| 349 |
831 |
<reponame>phpc0de/idea-android
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.tools.adtui;
import org.junit.Test;
import javax.swing.*;
import java.awt.*;
import java.util.stream.Collectors;
import static com.google.common.truth.Truth.assertThat;
@SuppressWarnings("OptionalGetWithoutIsPresent") // Don't care in tests
public class TreeWalkerTest {
@Test
public void canStreamDescendants() throws Exception {
JPanel panel1 = new JPanel();
JPanel panel11 = new JPanel();
JPanel panel12 = new JPanel();
JPanel panel123 = new JPanel();
JPanel panel13 = new JPanel();
panel1.add(panel11);
panel1.add(panel12);
panel12.add(panel123);
panel1.add(panel13);
JLabel label = new JLabel();
JButton button = new JButton();
JTextField textField = new JTextField();
panel11.add(label);
panel123.add(button);
panel13.add(textField);
TreeWalker treeWalker = new TreeWalker(panel1);
assertThat(treeWalker.descendantStream().filter(c -> c instanceof JLabel).findFirst().get()).isEqualTo(label);
assertThat(treeWalker.descendantStream().filter(c -> c instanceof JButton).findFirst().get()).isEqualTo(button);
assertThat(treeWalker.descendantStream().filter(c -> c instanceof JTextField).findFirst().get()).isEqualTo(textField);
assertThat(treeWalker.descendantStream().anyMatch(c -> c instanceof JTable)).isFalse();
}
@Test
public void canIterateDescendants() throws Exception {
JPanel panel1 = new JPanel();
JPanel panel11 = new JPanel();
JPanel panel12 = new JPanel();
JPanel panel123 = new JPanel();
JPanel panel13 = new JPanel();
panel1.add(panel11);
panel1.add(panel12);
panel12.add(panel123);
panel1.add(panel13);
int count = 0;
TreeWalker treeWalker = new TreeWalker(panel1);
for (Component c : treeWalker.descendants()) {
count++;
}
assertThat(count).isEqualTo(5);
}
@Test
public void descendantsIncludesSelf() throws Exception {
JPanel panel1 = new JPanel();
JPanel panel11 = new JPanel();
JPanel panel12 = new JPanel();
panel1.add(panel11);
panel1.add(panel12);
TreeWalker treeWalker = new TreeWalker(panel1);
assertThat(treeWalker.descendantStream().anyMatch(c -> c == panel1)).isTrue();
}
@Test
public void descendantsAreReturnedInBreadthFirstSearchOrder() throws Exception {
JPanel panelRoot = new JPanel();
JPanel panel1 = new JPanel();
JPanel panel11 = new JPanel();
JPanel panel111 = new JPanel();
JPanel panel112 = new JPanel();
JPanel panel2 = new JPanel();
JPanel panel3 = new JPanel();
JPanel panel31 = new JPanel();
JPanel panel32 = new JPanel();
panelRoot.add(panel1);
panel1.add(panel11);
panel11.add(panel111);
panel11.add(panel112);
panelRoot.add(panel2);
panelRoot.add(panel3);
panel3.add(panel31);
panel3.add(panel32);
TreeWalker treeWalker = new TreeWalker(panelRoot);
assertThat(treeWalker.descendantStream().collect(Collectors.toList())).
containsExactly(panelRoot, panel1, panel2, panel3, panel11, panel31, panel32, panel111, panel112).inOrder();
}
@Test
public void descendantsCanBeReturnedInDepthFirstSearchOrder() throws Exception {
JPanel panelRoot = new JPanel();
JPanel panel1 = new JPanel();
JPanel panel11 = new JPanel();
JPanel panel111 = new JPanel();
JPanel panel112 = new JPanel();
JPanel panel2 = new JPanel();
JPanel panel3 = new JPanel();
JPanel panel31 = new JPanel();
JPanel panel32 = new JPanel();
panelRoot.add(panel1);
panel1.add(panel11);
panel11.add(panel111);
panel11.add(panel112);
panelRoot.add(panel2);
panelRoot.add(panel3);
panel3.add(panel31);
panel3.add(panel32);
TreeWalker treeWalker = new TreeWalker(panelRoot);
assertThat(treeWalker.descendantStream(TreeWalker.DescendantOrder.DEPTH_FIRST).collect(Collectors.toList())).
containsExactly(panelRoot, panel1, panel11, panel111, panel112, panel2, panel3, panel31, panel32).inOrder();
}
@Test
public void canStreamAncestors() throws Exception {
JPanel panel1 = new JPanel();
JPanel panel11 = new JPanel();
JPanel panel12 = new JPanel();
JPanel panel123 = new JPanel();
JPanel panel13 = new JPanel();
panel1.add(panel11);
panel1.add(panel12);
panel12.add(panel123);
panel1.add(panel13);
TreeWalker treeWalker = new TreeWalker(panel123);
assertThat(treeWalker.ancestorStream().anyMatch(c -> c == panel12)).isTrue();
assertThat(treeWalker.ancestorStream().anyMatch(c -> c == panel1)).isTrue();
assertThat(treeWalker.ancestorStream().anyMatch(c -> c == panel11)).isFalse();
assertThat(treeWalker.ancestorStream().anyMatch(c -> c == panel13)).isFalse();
}
@Test
public void canIterateAncestors() throws Exception {
JPanel panel1 = new JPanel();
JPanel panel11 = new JPanel();
JPanel panel12 = new JPanel();
JPanel panel123 = new JPanel();
JPanel panel13 = new JPanel();
panel1.add(panel11);
panel1.add(panel12);
panel12.add(panel123);
panel1.add(panel13);
int count = 0;
TreeWalker treeWalker = new TreeWalker(panel123);
for (Component c : treeWalker.ancestors()) {
count++;
}
assertThat(count).isEqualTo(3); // panel123, panel12, panel1
}
@Test
public void findAncestorsIncludesSelf() throws Exception {
JPanel panel1 = new JPanel();
JPanel panel11 = new JPanel();
JPanel panel12 = new JPanel();
panel1.add(panel11);
panel1.add(panel12);
TreeWalker treeWalker = new TreeWalker(panel12);
assertThat(treeWalker.ancestorStream().anyMatch(c -> c == panel12)).isTrue();
}
@Test
public void ancestorsAreReturnedInOrder() throws Exception {
JPanel panel1 = new JPanel();
JPanel panel2 = new JPanel();
JPanel panel3 = new JPanel();
panel1.add(panel2);
panel2.add(panel3);
TreeWalker treeWalker = new TreeWalker(panel3);
assertThat(treeWalker.ancestorStream().collect(Collectors.toList())).containsExactly(panel3, panel2, panel1).inOrder();
}
@Test
public void isAncestorWorks() throws Exception {
JPanel panel1 = new JPanel();
JPanel panel11 = new JPanel();
JPanel panel12 = new JPanel();
JPanel panel123 = new JPanel();
JPanel panel13 = new JPanel();
panel1.add(panel11);
panel1.add(panel12);
panel12.add(panel123);
panel1.add(panel13);
assertThat(TreeWalker.isAncestor(panel1, panel123)).isTrue();
assertThat(TreeWalker.isAncestor(panel123, panel1)).isFalse();
assertThat(TreeWalker.isAncestor(panel1, panel1)).isTrue();
assertThat(TreeWalker.isAncestor(panel11, panel123)).isFalse();
assertThat(TreeWalker.isAncestor(panel12, panel123)).isTrue();
}
}
| 2,599 |
643 |
<filename>java/ql/test/query-tests/security/CWE-200/semmle/tests/Files.java
package com.google.common.io;
import java.io.File;
public class Files {
/** Maximum loop count when creating temp directories. */
private static final int TEMP_DIR_ATTEMPTS = 10000;
public static File createTempDir() {
File baseDir = new File(System.getProperty("java.io.tmpdir"));
String baseName = System.currentTimeMillis() + "-";
for (int counter = 0; counter < TEMP_DIR_ATTEMPTS; counter++) {
File tempDir = new File(baseDir, baseName + counter);
if (tempDir.mkdir()) {
return tempDir;
}
}
throw new IllegalStateException("Failed to create directory within " + TEMP_DIR_ATTEMPTS + " attempts (tried "
+ baseName + "0 to " + baseName + (TEMP_DIR_ATTEMPTS - 1) + ')');
}
}
| 357 |
1,894 |
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import contextlib
from google.appengine.api import modules
from google.appengine.api import namespace_manager
from google.appengine.ext import ndb
from infra_libs.ts_mon.common import metrics
REGION = 'appengine'
PRODXMON_ENDPOINT = 'https://prodxmon-pa.googleapis.com/v1:insert'
PRODXMON_SERVICE_ACCOUNT_EMAIL = (
'<EMAIL>@'
'<EMAIL>.<EMAIL>account.<EMAIL>')
INSTANCE_NAMESPACE = 'ts_mon_instance_namespace'
# Duration of inactivity to consider an instance dead.
INSTANCE_EXPIRE_SEC = 30 * 60
INSTANCE_EXPECTED_TO_HAVE_TASK_NUM_SEC = 5 * 60
INTERNAL_CALLBACK_NAME = '__gae_ts_mon_callback'
appengine_default_version = metrics.StringMetric(
'appengine/default_version',
'Name of the version currently marked as default.',
None)
started_counter = metrics.CounterMetric(
'appengine/instances/started',
'Count the number of GAE instance initializations.',
None)
shutdown_counter = metrics.CounterMetric(
'appengine/instances/shutdown',
'Count the number of GAE instance shutdowns.',
None)
expired_counter = metrics.CounterMetric(
'appengine/instances/expired',
'Count the number of GAE instance expirations due to inactivity.',
None)
class Instance(ndb.Model):
"""Used to map instances to small integers.
Each instance "owns" an entity with the key <instance-id>.<version>.<module>.
`task_num` is a mapping assigned by a cron job to the instance; -1=undefined.
"""
@classmethod
def _get_kind(cls):
return 'TSMonInstance'
task_num = ndb.IntegerProperty(default=-1)
last_updated = ndb.DateTimeProperty(auto_now_add=True)
def instance_key_id():
return '%s.%s.%s' % (
modules.get_current_instance_id(),
modules.get_current_version_name(),
modules.get_current_module_name())
@contextlib.contextmanager
def instance_namespace_context():
previous_namespace = namespace_manager.get_namespace()
try:
namespace_manager.set_namespace(INSTANCE_NAMESPACE)
yield
finally:
namespace_manager.set_namespace(previous_namespace)
def get_instance_entity():
with instance_namespace_context():
return Instance.get_or_insert(instance_key_id())
| 801 |
1,668 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0002_auto_20150616_2121'),
('assets', '0008_auto_20160122_1429'),
]
operations = [
migrations.CreateModel(
name='SecurityScan',
fields=[
('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
('created', models.DateTimeField(verbose_name='date created', auto_now_add=True)),
('modified', models.DateTimeField(verbose_name='last modified', auto_now=True)),
('last_scan_date', models.DateTimeField()),
('scan_status', models.PositiveIntegerField(choices=[(1, 'ok'), (2, 'fail'), (3, 'error')])),
('next_scan_date', models.DateTimeField()),
('details_url', models.URLField(max_length=255, blank=True)),
('rescan_url', models.URLField(verbose_name='Rescan url', blank=True)),
('base_object', models.ForeignKey(to='assets.BaseObject')),
('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', verbose_name='Tags', to='taggit.Tag', through='taggit.TaggedItem', blank=True)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Vulnerability',
fields=[
('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
('created', models.DateTimeField(verbose_name='date created', auto_now_add=True)),
('modified', models.DateTimeField(verbose_name='last modified', auto_now=True)),
('name', models.CharField(verbose_name='name', max_length=1024)),
('patch_deadline', models.DateTimeField(null=True, blank=True)),
('risk', models.PositiveIntegerField(null=True, choices=[(1, 'low'), (2, 'medium'), (3, 'high')], blank=True)),
('external_vulnerability_id', models.IntegerField(help_text='Id of vulnerability from external system', unique=True, null=True, blank=True)),
('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', verbose_name='Tags', to='taggit.Tag', through='taggit.TaggedItem', blank=True)),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='securityscan',
name='vulnerabilities',
field=models.ManyToManyField(to='security.Vulnerability'),
),
]
| 1,253 |
1,511 |
/* Copyright 2006-2008, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
| 31 |
3,227 |
// Copyright (c) 2005 INRIA (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : <NAME>, <NAME>, <NAME>
#ifndef CGAL_SURFACE_MESH_PARAMETERIZATION_DISCRETE_CONFORMAL_MAP_PARAMETERIZER_3_H
#define CGAL_SURFACE_MESH_PARAMETERIZATION_DISCRETE_CONFORMAL_MAP_PARAMETERIZER_3_H
#include <CGAL/license/Surface_mesh_parameterization.h>
#include <CGAL/disable_warnings.h>
#include <CGAL/Surface_mesh_parameterization/internal/kernel_traits.h>
#include <CGAL/Surface_mesh_parameterization/Error_code.h>
#include <CGAL/Surface_mesh_parameterization/Fixed_border_parameterizer_3.h>
#include <CGAL/Weights/cotangent_weights.h>
#if defined(CGAL_EIGEN3_ENABLED)
#include <CGAL/Eigen_solver_traits.h>
#endif
#include <CGAL/Default.h>
/// \file Discrete_conformal_map_parameterizer_3.h
namespace CGAL {
namespace Surface_mesh_parameterization {
/// \ingroup PkgSurfaceMeshParameterizationMethods
///
/// The class `Discrete_conformal_map_parameterizer_3`
/// implements the <i>Discrete Conformal Map (DCM)</i> parameterization.
/// This algorithm is also called <i>Discrete Conformal Parameterization (DCP)</i>,
/// <i>Discrete Harmonic Map</i> or <i>Fixed Conformal Parameterization</i> by other authors \cgalCite{cgal:eddhls-maam-95}.
///
/// This is a conformal parameterization, i.e. it attempts to preserve angles.
///
/// A one-to-one mapping is guaranteed if the surface's border is mapped onto a convex polygon.
///
/// This class is a strategy called by the main
/// parameterization algorithm `Fixed_border_parameterizer_3::parameterize()` and it:
/// - provides the template parameters `BorderParameterizer_` and `SolverTraits_`.
/// - implements `compute_w_ij()` to compute `w_ij`, the `(i,j)`-coefficient of matrix `A`,
/// for `j` neighbor vertex of `i`, based on Discrete Conformal Map method.
///
/// \cgalModels `Parameterizer_3`
///
/// \tparam TriangleMesh_ must be a model of `FaceGraph`
///
/// \tparam BorderParameterizer_ is a Strategy to parameterize the surface border
/// and must be a model of `Parameterizer_3`.<br>
/// <b>%Default:</b>
/// \code
/// Circular_border_arc_length_parameterizer_3<TriangleMesh_>.
/// \endcode
///
/// \tparam SolverTraits_ must be a model of `SparseLinearAlgebraTraits_d`.<br>
/// Note that the system is *not* symmetric because `Fixed_border_parameterizer_3`
/// does not remove border vertices from the system.<br>
/// <b>%Default:</b> If \ref thirdpartyEigen "Eigen" 3.1 (or greater) is available
/// and `CGAL_EIGEN3_ENABLED` is defined, then an overload of `Eigen_solver_traits`
/// is provided as default parameter:
/// \code
/// CGAL::Eigen_solver_traits<
/// Eigen::BiCGSTAB<Eigen_sparse_matrix<double>::EigenType,
/// Eigen::IncompleteLUT< double > > >
/// \endcode
///
/// \sa `CGAL::Surface_mesh_parameterization::Fixed_border_parameterizer_3<TriangleMesh, BorderParameterizer, SolverTraits>`
///
template < typename TriangleMesh_,
typename BorderParameterizer_ = Default,
typename SolverTraits_ = Default >
class Discrete_conformal_map_parameterizer_3
: public Fixed_border_parameterizer_3<
TriangleMesh_,
typename Default::Get<
BorderParameterizer_,
Circular_border_arc_length_parameterizer_3<TriangleMesh_> >::type,
typename Default::Get<
SolverTraits_,
#if defined(CGAL_EIGEN3_ENABLED)
CGAL::Eigen_solver_traits<
Eigen::BiCGSTAB<Eigen_sparse_matrix<double>::EigenType,
Eigen::IncompleteLUT<double> > > >::type >
#else
SolverTraits_>::type > // no parameter provided, and Eigen is not enabled: so don't compile!
#endif
{
public:
#ifndef DOXYGEN_RUNNING
typedef typename Default::Get<
BorderParameterizer_,
Circular_border_arc_length_parameterizer_3<TriangleMesh_> >::type Border_parameterizer;
typedef typename Default::Get<
SolverTraits_,
#if defined(CGAL_EIGEN3_ENABLED)
CGAL::Eigen_solver_traits<
Eigen::BiCGSTAB<Eigen_sparse_matrix<double>::EigenType,
Eigen::IncompleteLUT<double> > >
#else
SolverTraits_ // no parameter provided, and Eigen is not enabled: so don't compile!
#endif
>::type Solver_traits;
#else
/// Border parameterizer type
typedef Border_parameterizer_ Border_parameterizer;
/// Solver traits type
typedef SolverTraits_ Solver_traits;
#endif
/// Triangle mesh type
typedef TriangleMesh_ Triangle_mesh;
typedef TriangleMesh_ TriangleMesh;
// Private types
private:
// Superclass
typedef Fixed_border_parameterizer_3<Triangle_mesh,
Border_parameterizer,
Solver_traits> Base;
// Private types
private:
typedef typename boost::graph_traits<Triangle_mesh>::vertex_descriptor vertex_descriptor;
typedef CGAL::Vertex_around_target_circulator<Triangle_mesh> vertex_around_target_circulator;
// Traits subtypes:
typedef typename Base::Kernel Kernel;
typedef typename Base::NT NT;
typedef typename Base::Point_3 Point_3;
typedef typename Base::Vector_3 Vector_3;
typedef typename Base::PPM PPM;
// Solver traits subtypes:
typedef typename Solver_traits::Vector Vector;
typedef typename Solver_traits::Matrix Matrix;
// Public operations
public:
/// Constructor
Discrete_conformal_map_parameterizer_3(Border_parameterizer border_param = Border_parameterizer(),
///< %Object that maps the surface's border to 2D space.
Solver_traits sparse_la = Solver_traits())
///< Traits object to access a sparse linear system.
: Fixed_border_parameterizer_3<Triangle_mesh,
Border_parameterizer,
Solver_traits>(border_param, sparse_la)
{ }
// Default copy constructor and operator =() are fine
// Protected operations
protected:
/// computes `w_ij`, the `(i,j)`-coefficient of matrix `A`, for `j` neighbor vertex of `i`.
///
/// \param mesh a triangulated surface.
/// \param main_vertex_v_i the vertex of `mesh` with index `i`
/// \param neighbor_vertex_v_j the vertex of `mesh` with index `j`
virtual NT compute_w_ij(const Triangle_mesh& mesh,
vertex_descriptor main_vertex_v_i,
Vertex_around_target_circulator<Triangle_mesh> neighbor_vertex_v_j) const // its target is main_vertex_v_i
{
const PPM ppmap = get(vertex_point, mesh);
const Point_3& position_v_i = get(ppmap, main_vertex_v_i);
const Point_3& position_v_j = get(ppmap, *neighbor_vertex_v_j);
vertex_around_target_circulator previous_vertex_v_k = neighbor_vertex_v_j;
--previous_vertex_v_k;
const Point_3& position_v_k = get(ppmap, *previous_vertex_v_k);
vertex_around_target_circulator next_vertex_v_l = neighbor_vertex_v_j;
++next_vertex_v_l;
const Point_3& position_v_l = get(ppmap, *next_vertex_v_l);
return CGAL::Weights::cotangent_weight(position_v_k, position_v_j, position_v_l, position_v_i) / NT(2);
}
};
} // namespace Surface_mesh_parameterization
} // namespace CGAL
#include <CGAL/enable_warnings.h>
#endif // CGAL_SURFACE_MESH_PARAMETERIZATION_DISCRETE_CONFORMAL_MAP_PARAMETERIZER_3_H
| 3,323 |
571 |
/***************************************************************************
Copyright 2015 Ufora 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.
****************************************************************************/
#include "JudgmentParser.hppml"
#include "JudgmentOnValue.hppml"
#include <stdint.h>
#include <boost/python.hpp>
#include "../../native/Registrar.hpp"
#include "../../core/python/CPPMLWrapper.hpp"
#include "../../core/python/ScopedPyThreads.hpp"
class JudgmentParserWrapper :
public native::module::Exporter<JudgmentParserWrapper> {
public:
std::string getModuleName(void)
{
return "FORA";
}
static JudgmentOnValueTuple parseJOVT(const string& inJOVString)
{
SimpleParseNode parseNode = parseStringToSimpleParse(inJOVString);
return JudgmentParser::parseJOVT(parseNode);
}
static JudgmentOnValue parseJOV(const string& inJOVString)
{
SimpleParseNode parseNode = parseStringToSimpleParse(inJOVString);
return JudgmentParser::parseJOV(parseNode);
}
static JudgmentOnResult parseJOR(const string& inJORString)
{
SimpleParseNode parseNode = parseStringToSimpleParse(inJORString);
return JudgmentParser::parseJOR(parseNode);
}
static void jpeErrorTranslator(JudgmentParseError arg)
{
PyErr_SetString(
PyExc_UserWarning,
("JudgmentParseError: " + prettyPrintString(arg)).c_str()
);
}
void exportPythonWrapper()
{
using namespace boost::python;
boost::python::register_exception_translator<JudgmentParseError>(&jpeErrorTranslator);
def("parseStringToJOVT", &parseJOVT);
def("parseStringToJOV", &parseJOV);
def("parseStringToJOR", &parseJOR);
}
};
//explicitly instantiating the registration element causes the linker to need
//this file
template<>
char native::module::Exporter<JudgmentParserWrapper>::mEnforceRegistration =
native::module::ExportRegistrar<
JudgmentParserWrapper>::registerWrapper();
| 819 |
678 |
<filename>Source/ActionNodeController.h<gh_stars>100-1000
/* ActionNodeController */
#import <Cocoa/Cocoa.h>
typedef enum {
CMSelectedSegmentForBuiltinAction = 0,
CMSelectedSegmentForScriptAction,
CMSelectedSegmentForUserScriptAction
} CMSelectedSegment;
@interface ActionNodeController : NSObject
{
IBOutlet NSOutlineView *actionsOutlineView;
IBOutlet NSOutlineView *reservedActionsOutlineView;
IBOutlet NSTreeController *actionTreeController;
IBOutlet NSTreeController *reserveTreeController;
IBOutlet NSTextField *nameField;
IBOutlet NSTextField *typeField;
IBOutlet NSTextField *pathField;
NSInteger indexOfActionTypeSegment;
NSArray *draggedNodes;
/* Model */
NSMutableArray *actionNodes;
NSArray *builtinNodes;
NSArray *bundledNodes;
NSArray *usersNodes;
/* cached images for generic folder and url document */
NSImage *folderImage;
NSImage *itemImage;
NSImage *jsImage;
}
@property (nonatomic, assign) NSInteger indexOfActionTypeSegment;
@property (nonatomic, assign) NSArray *draggedNodes;
@property (nonatomic, copy) NSMutableArray *actionNodes;
@property (nonatomic, retain) NSArray *builtinNodes;
@property (nonatomic, retain) NSArray *bundledNodes;
@property (nonatomic, retain) NSArray *usersNodes;
@property (nonatomic, retain) NSImage *folderImage;
@property (nonatomic, retain) NSImage *itemImage;
@property (nonatomic, retain) NSImage *jsImage;
- (void)handleAwakeFromNib;
- (IBAction)add:(id)sender;
- (IBAction)remove:(id)sender;
@end
| 515 |
14,668 |
<filename>components/paint_preview/browser/paint_preview_base_service_test_factory.h
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PAINT_PREVIEW_BROWSER_PAINT_PREVIEW_BASE_SERVICE_TEST_FACTORY_H_
#define COMPONENTS_PAINT_PREVIEW_BROWSER_PAINT_PREVIEW_BASE_SERVICE_TEST_FACTORY_H_
#include <memory>
#include "components/keyed_service/core/keyed_service.h"
#include "components/keyed_service/core/simple_factory_key.h"
#include "components/keyed_service/core/simple_keyed_service_factory.h"
#include "components/paint_preview/browser/paint_preview_base_service.h"
namespace paint_preview {
// An approximation of a SimpleKeyedServiceFactory for a keyed
// PaintPerviewBaseService. This is different than a "real" version as it
// uses base::NoDestructor rather than base::Singleton due to testing object
// lifecycle.
class PaintPreviewBaseServiceTestFactory : public SimpleKeyedServiceFactory {
public:
static PaintPreviewBaseServiceTestFactory* GetInstance();
static PaintPreviewBaseService* GetForKey(SimpleFactoryKey* key);
// The following are unusual methods for an implementer of a
// KeyedServiceFactory. They are intended to help with testing.
static std::unique_ptr<KeyedService> Build(SimpleFactoryKey* key);
void Destroy(SimpleFactoryKey* key);
// These are public due to using base::NoDestructor. Don't call directly.
PaintPreviewBaseServiceTestFactory();
~PaintPreviewBaseServiceTestFactory() override;
PaintPreviewBaseServiceTestFactory(
const PaintPreviewBaseServiceTestFactory&) = delete;
PaintPreviewBaseServiceTestFactory& operator=(
const PaintPreviewBaseServiceTestFactory&) = delete;
private:
std::unique_ptr<KeyedService> BuildServiceInstanceFor(
SimpleFactoryKey* key) const override;
SimpleFactoryKey* GetKeyToUse(SimpleFactoryKey* key) const override;
};
} // namespace paint_preview
#endif // COMPONENTS_PAINT_PREVIEW_BROWSER_PAINT_PREVIEW_BASE_SERVICE_TEST_FACTORY_H_
| 644 |
753 |
# -*- coding: utf-8 -*-
"""
BLE Client for python-for-android
"""
import asyncio
import logging
import uuid
import warnings
from typing import Callable, Optional, Union
from bleak.backends.device import BLEDevice
from bleak.backends.service import BleakGATTServiceCollection
from bleak.exc import BleakError
from bleak.backends.client import BaseBleakClient
from bleak.backends.p4android.service import BleakGATTServiceP4Android
from bleak.backends.p4android.characteristic import BleakGATTCharacteristicP4Android
from bleak.backends.p4android.descriptor import BleakGATTDescriptorP4Android
from android.broadcast import BroadcastReceiver
from jnius import java_method
from . import defs
from . import utils
logger = logging.getLogger(__name__)
class BleakClientP4Android(BaseBleakClient):
"""A python-for-android Bleak Client
Args:
address_or_ble_device (`BLEDevice` or str): The Bluetooth address of the BLE peripheral to connect to or the `BLEDevice` object representing it.
Keyword Args:
disconnected_callback (callable): Callback that will be scheduled in the
event loop when the client is disconnected. The callable must take one
argument, which will be this client object.
adapter (str): Bluetooth adapter to use for discovery. [unused]
"""
def __init__(self, address_or_ble_device: Union[BLEDevice, str], **kwargs):
super(BleakClientP4Android, self).__init__(address_or_ble_device, **kwargs)
# kwarg "device" is for backwards compatibility
self.__adapter = kwargs.get("adapter", kwargs.get("device", None))
self.__gatt = None
self.__mtu = None
def __del__(self):
if self.__gatt is not None:
self.__gatt.close()
self.__gatt = None
# Connectivity methods
async def connect(self, **kwargs) -> bool:
"""Connect to the specified GATT server.
Returns:
Boolean representing connection status.
"""
loop = asyncio.get_event_loop()
self.__adapter = defs.BluetoothAdapter.getDefaultAdapter()
if self.__adapter is None:
raise BleakError("Bluetooth is not supported on this hardware platform")
if self.__adapter.getState() != defs.BluetoothAdapter.STATE_ON:
raise BleakError("Bluetooth is not turned on")
self.__device = self.__adapter.getRemoteDevice(self.address)
self.__callbacks = _PythonBluetoothGattCallback(self, loop)
self._subscriptions = {}
logger.debug(f"Connecting to BLE device @ {self.address}")
(self.__gatt,) = await self.__callbacks.perform_and_wait(
dispatchApi=self.__device.connectGatt,
dispatchParams=(
defs.context,
False,
self.__callbacks.java,
defs.BluetoothDevice.TRANSPORT_LE,
),
resultApi="onConnectionStateChange",
resultExpected=(defs.BluetoothProfile.STATE_CONNECTED,),
return_indicates_status=False,
)
try:
logger.debug("Connection successful.")
# unlike other backends, Android doesn't automatically negotiate
# the MTU, so we request the largest size possible like BlueZ
logger.debug("requesting mtu...")
(self.__mtu,) = await self.__callbacks.perform_and_wait(
dispatchApi=self.__gatt.requestMtu,
dispatchParams=(517,),
resultApi="onMtuChanged",
)
logger.debug("discovering services...")
await self.__callbacks.perform_and_wait(
dispatchApi=self.__gatt.discoverServices,
dispatchParams=(),
resultApi="onServicesDiscovered",
)
await self.get_services()
except BaseException:
# if connecting is canceled or one of the above fails, we need to
# disconnect
try:
await self.disconnect()
except Exception:
pass
raise
return True
async def disconnect(self) -> bool:
"""Disconnect from the specified GATT server.
Returns:
Boolean representing if device is disconnected.
"""
logger.debug("Disconnecting from BLE device...")
if self.__gatt is None:
# No connection exists. Either one hasn't been created or
# we have already called disconnect and closed the gatt
# connection.
logger.debug("already disconnected")
return True
# Try to disconnect the actual device/peripheral
try:
await self.__callbacks.perform_and_wait(
dispatchApi=self.__gatt.disconnect,
dispatchParams=(),
resultApi="onConnectionStateChange",
resultExpected=(defs.BluetoothProfile.STATE_DISCONNECTED,),
unless_already=True,
return_indicates_status=False,
)
self.__gatt.close()
except Exception as e:
logger.error(f"Attempt to disconnect device failed: {e}")
self.__gatt = None
self.__callbacks = None
# Reset all stored services.
self.services = BleakGATTServiceCollection()
self._services_resolved = False
return True
async def pair(self, *args, **kwargs) -> bool:
"""Pair with the peripheral.
You can use ConnectDevice method if you already know the MAC address of the device.
Else you need to StartDiscovery, Trust, Pair and Connect in sequence.
Returns:
Boolean regarding success of pairing.
"""
loop = asyncio.get_event_loop()
bondedFuture = loop.create_future()
def handleBondStateChanged(context, intent):
bond_state = intent.getIntExtra(defs.BluetoothDevice.EXTRA_BOND_STATE, -1)
if bond_state == -1:
loop.call_soon_threadsafe(
bondedFuture.set_exception,
BleakError(f"Unexpected bond state {bond_state}"),
)
elif bond_state == defs.BluetoothDevice.BOND_NONE:
loop.call_soon_threadsafe(
bondedFuture.set_exception,
BleakError(
f"Device with address {self.address} could not be paired with."
),
)
elif bond_state == defs.BluetoothDevice.BOND_BONDED:
loop.call_soon_threadsafe(bondedFuture.set_result, True)
receiver = BroadcastReceiver(
handleBondStateChanged,
actions=[defs.BluetoothDevice.ACTION_BOND_STATE_CHANGED],
)
receiver.start()
try:
# See if it is already paired.
bond_state = self.__device.getBondState()
if bond_state == defs.BluetoothDevice.BOND_BONDED:
return True
elif bond_state == defs.BluetoothDevice.BOND_NONE:
logger.debug(f"Pairing to BLE device @ {self.address}")
if not self.__device.createBond():
raise BleakError(
f"Could not initiate bonding with device @ {self.address}"
)
return await bondedFuture
finally:
await receiver.stop()
async def unpair(self) -> bool:
"""Unpair with the peripheral.
Returns:
Boolean regarding success of unpairing.
"""
warnings.warn(
"Unpairing is seemingly unavailable in the Android API at the moment."
)
return False
@property
def is_connected(self) -> bool:
"""Check connection status between this client and the server.
Returns:
Boolean representing connection status.
"""
return (
self.__callbacks is not None
and self.__callbacks.states["onConnectionStateChange"][1]
== defs.BluetoothProfile.STATE_CONNECTED
)
@property
def mtu_size(self) -> Optional[int]:
return self.__mtu
# GATT services methods
async def get_services(self) -> BleakGATTServiceCollection:
"""Get all services registered for this GATT server.
Returns:
A :py:class:`bleak.backends.service.BleakGATTServiceCollection` with this device's services tree.
"""
if self._services_resolved:
return self.services
logger.debug("Get Services...")
for java_service in self.__gatt.getServices():
service = BleakGATTServiceP4Android(java_service)
self.services.add_service(service)
for java_characteristic in java_service.getCharacteristics():
characteristic = BleakGATTCharacteristicP4Android(
java_characteristic, service.uuid, service.handle
)
self.services.add_characteristic(characteristic)
for descriptor_index, java_descriptor in enumerate(
java_characteristic.getDescriptors()
):
descriptor = BleakGATTDescriptorP4Android(
java_descriptor,
characteristic.uuid,
characteristic.handle,
descriptor_index,
)
self.services.add_descriptor(descriptor)
self._services_resolved = True
return self.services
# IO methods
async def read_gatt_char(
self,
char_specifier: Union[BleakGATTCharacteristicP4Android, int, str, uuid.UUID],
**kwargs,
) -> bytearray:
"""Perform read operation on the specified GATT characteristic.
Args:
char_specifier (BleakGATTCharacteristicP4Android, int, str or UUID): The characteristic to read from,
specified by either integer handle, UUID or directly by the
BleakGATTCharacteristicP4Android object representing it.
Returns:
(bytearray) The read data.
"""
if not isinstance(char_specifier, BleakGATTCharacteristicP4Android):
characteristic = self.services.get_characteristic(char_specifier)
else:
characteristic = char_specifier
if not characteristic:
raise BleakError(
f"Characteristic with UUID {char_specifier} could not be found!"
)
(value,) = await self.__callbacks.perform_and_wait(
dispatchApi=self.__gatt.readCharacteristic,
dispatchParams=(characteristic.obj,),
resultApi=("onCharacteristicRead", characteristic.handle),
)
value = bytearray(value)
logger.debug(
f"Read Characteristic {characteristic.uuid} | {characteristic.handle}: {value}"
)
return value
async def read_gatt_descriptor(
self,
desc_specifier: Union[BleakGATTDescriptorP4Android, str, uuid.UUID],
**kwargs,
) -> bytearray:
"""Perform read operation on the specified GATT descriptor.
Args:
desc_specifier (BleakGATTDescriptorP4Android, str or UUID): The descriptor to read from,
specified by either UUID or directly by the
BleakGATTDescriptorP4Android object representing it.
Returns:
(bytearray) The read data.
"""
if not isinstance(desc_specifier, BleakGATTDescriptorP4Android):
descriptor = self.services.get_descriptor(desc_specifier)
else:
descriptor = desc_specifier
if not descriptor:
raise BleakError(f"Descriptor with UUID {desc_specifier} was not found!")
(value,) = await self.__callbacks.perform_and_wait(
dispatchApi=self.__gatt.readDescriptor,
dispatchParams=(descriptor.obj,),
resultApi=("onDescriptorRead", descriptor.uuid),
)
value = bytearray(value)
logger.debug(
f"Read Descriptor {descriptor.uuid} | {descriptor.handle}: {value}"
)
return value
async def write_gatt_char(
self,
char_specifier: Union[BleakGATTCharacteristicP4Android, int, str, uuid.UUID],
data: bytearray,
response: bool = False,
) -> None:
"""Perform a write operation on the specified GATT characteristic.
Args:
char_specifier (BleakGATTCharacteristicP4Android, int, str or UUID): The characteristic to write
to, specified by either integer handle, UUID or directly by the
BleakGATTCharacteristicP4Android object representing it.
data (bytes or bytearray): The data to send.
response (bool): If write-with-response operation should be done. Defaults to `False`.
"""
if not isinstance(char_specifier, BleakGATTCharacteristicP4Android):
characteristic = self.services.get_characteristic(char_specifier)
else:
characteristic = char_specifier
if not characteristic:
raise BleakError(f"Characteristic {char_specifier} was not found!")
if (
"write" not in characteristic.properties
and "write-without-response" not in characteristic.properties
):
raise BleakError(
f"Characteristic {str(characteristic.uuid)} does not support write operations!"
)
if not response and "write-without-response" not in characteristic.properties:
response = True
# Force response here, since the device only supports that.
if (
response
and "write" not in characteristic.properties
and "write-without-response" in characteristic.properties
):
response = False
logger.warning(
"Characteristic %s does not support Write with response. Trying without..."
% str(characteristic.uuid)
)
if response:
characteristic.obj.setWriteType(
defs.BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT
)
else:
characteristic.obj.setWriteType(
defs.BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE
)
characteristic.obj.setValue(data)
await self.__callbacks.perform_and_wait(
dispatchApi=self.__gatt.writeCharacteristic,
dispatchParams=(characteristic.obj,),
resultApi=("onCharacteristicWrite", characteristic.handle),
)
logger.debug(
f"Write Characteristic {characteristic.uuid} | {characteristic.handle}: {data}"
)
async def write_gatt_descriptor(
self,
desc_specifier: Union[BleakGATTDescriptorP4Android, str, uuid.UUID],
data: bytearray,
) -> None:
"""Perform a write operation on the specified GATT descriptor.
Args:
desc_specifier (BleakGATTDescriptorP4Android, str or UUID): The descriptor to write
to, specified by either UUID or directly by the
BleakGATTDescriptorP4Android object representing it.
data (bytes or bytearray): The data to send.
"""
if not isinstance(desc_specifier, BleakGATTDescriptorP4Android):
descriptor = self.services.get_descriptor(desc_specifier)
else:
descriptor = desc_specifier
if not descriptor:
raise BleakError(f"Descriptor {desc_specifier} was not found!")
descriptor.obj.setValue(data)
await self.__callbacks.perform_and_wait(
dispatchApi=self.__gatt.writeDescriptor,
dispatchParams=(descriptor.obj,),
resultApi=("onDescriptorWrite", descriptor.uuid),
)
logger.debug(
f"Write Descriptor {descriptor.uuid} | {descriptor.handle}: {data}"
)
async def start_notify(
self,
char_specifier: Union[BleakGATTCharacteristicP4Android, int, str, uuid.UUID],
callback: Callable[[int, bytearray], None],
**kwargs,
) -> None:
"""Activate notifications/indications on a characteristic.
Callbacks must accept two inputs. The first will be an integer handle of the characteristic generating the
data and the second will be a ``bytearray`` containing the data sent from the connected server.
.. code-block:: python
def callback(sender: int, data: bytearray):
print(f"{sender}: {data}")
client.start_notify(char_uuid, callback)
Args:
char_specifier (BleakGATTCharacteristicP4Android, int, str or UUID): The characteristic to activate
notifications/indications on a characteristic, specified by either integer handle,
UUID or directly by the BleakGATTCharacteristicP4Android object representing it.
callback (function): The function to be called on notification.
"""
if not isinstance(char_specifier, BleakGATTCharacteristicP4Android):
characteristic = self.services.get_characteristic(char_specifier)
else:
characteristic = char_specifier
if not characteristic:
raise BleakError(
f"Characteristic with UUID {char_specifier} could not be found!"
)
self._subscriptions[characteristic.handle] = callback
if not self.__gatt.setCharacteristicNotification(characteristic.obj, True):
raise BleakError(
f"Failed to enable notification for characteristic {characteristic.uuid}"
)
await self.write_gatt_descriptor(
characteristic.notification_descriptor,
defs.BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE,
)
async def stop_notify(
self,
char_specifier: Union[BleakGATTCharacteristicP4Android, int, str, uuid.UUID],
) -> None:
"""Deactivate notification/indication on a specified characteristic.
Args:
char_specifier (BleakGATTCharacteristicP4Android, int, str or UUID): The characteristic to deactivate
notification/indication on, specified by either integer handle, UUID or
directly by the BleakGATTCharacteristicP4Android object representing it.
"""
if not isinstance(char_specifier, BleakGATTCharacteristicP4Android):
characteristic = self.services.get_characteristic(char_specifier)
else:
characteristic = char_specifier
if not characteristic:
raise BleakError(f"Characteristic {char_specifier} not found!")
await self.write_gatt_descriptor(
characteristic.notification_descriptor,
defs.BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE,
)
if not self.__gatt.setCharacteristicNotification(characteristic.obj, False):
raise BleakError(
f"Failed to disable notification for characteristic {characteristic.uuid}"
)
del self._subscriptions[characteristic.handle]
class _PythonBluetoothGattCallback(utils.AsyncJavaCallbacks):
__javainterfaces__ = [
"com.github.hbldh.bleak.PythonBluetoothGattCallback$Interface"
]
def __init__(self, client, loop):
super().__init__(loop)
self._client = client
self.java = defs.PythonBluetoothGattCallback(self)
def result_state(self, status, resultApi, *data):
if status == defs.BluetoothGatt.GATT_SUCCESS:
failure_str = None
else:
failure_str = defs.GATT_STATUS_STRINGS.get(status, status)
self._loop.call_soon_threadsafe(
self._result_state_unthreadsafe, failure_str, resultApi, data
)
@java_method("(II)V")
def onConnectionStateChange(self, status, new_state):
try:
self.result_state(status, "onConnectionStateChange", new_state)
except BleakError:
pass
if (
new_state == defs.BluetoothProfile.STATE_DISCONNECTED
and self._client._disconnected_callback is not None
):
self._client._disconnected_callback(self._client)
@java_method("(II)V")
def onMtuChanged(self, mtu, status):
self.result_state(status, "onMtuChanged", mtu)
@java_method("(I)V")
def onServicesDiscovered(self, status):
self.result_state(status, "onServicesDiscovered")
@java_method("(I[B)V")
def onCharacteristicChanged(self, handle, value):
self._loop.call_soon_threadsafe(
self._client._subscriptions[handle], handle, bytearray(value.tolist())
)
@java_method("(II[B)V")
def onCharacteristicRead(self, handle, status, value):
self.result_state(
status, ("onCharacteristicRead", handle), bytes(value.tolist())
)
@java_method("(II)V")
def onCharacteristicWrite(self, handle, status):
self.result_state(status, ("onCharacteristicWrite", handle))
@java_method("(Ljava/lang/String;I[B)V")
def onDescriptorRead(self, uuid, status, value):
self.result_state(status, ("onDescriptorRead", uuid), bytes(value.tolist()))
@java_method("(Ljava/lang/String;I)V")
def onDescriptorWrite(self, uuid, status):
self.result_state(status, ("onDescriptorWrite", uuid))
| 9,468 |
32,544 |
package com.baeldung.java14.record;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class PersonUnitTest {
@Test
public void givenSameNameAndAddress_whenEquals_thenPersonsEqual() {
String name = "<NAME>";
String address = "100 Linda Ln.";
Person person1 = new Person(name, address);
Person person2 = new Person(name, address);
assertTrue(person1.equals(person2));
}
@Test
public void givenDifferentObject_whenEquals_thenNotEqual() {
Person person = new Person("<NAME>", "100 Linda Ln.");
assertFalse(person.equals(new Object()));
}
@Test
public void givenDifferentName_whenEquals_thenPersonsNotEqual() {
String address = "100 Linda Ln.";
Person person1 = new Person("<NAME>", address);
Person person2 = new Person("<NAME>", address);
assertFalse(person1.equals(person2));
}
@Test
public void givenDifferentAddress_whenEquals_thenPersonsNotEqual() {
String name = "<NAME>";
Person person1 = new Person(name, "100 Linda Ln.");
Person person2 = new Person(name, "200 London Ave.");
assertFalse(person1.equals(person2));
}
@Test
public void givenSameNameAndAddress_whenHashCode_thenPersonsEqual() {
String name = "<NAME>";
String address = "100 Linda Ln.";
Person person1 = new Person(name, address);
Person person2 = new Person(name, address);
assertEquals(person1.hashCode(), person2.hashCode());
}
@Test
public void givenDifferentObject_whenHashCode_thenNotEqual() {
Person person = new Person("<NAME>", "100 Linda Ln.");
assertNotEquals(person.hashCode(), new Object().hashCode());
}
@Test
public void givenDifferentName_whenHashCode_thenPersonsNotEqual() {
String address = "100 Linda Ln.";
Person person1 = new Person("<NAME>", address);
Person person2 = new Person("<NAME>", address);
assertNotEquals(person1.hashCode(), person2.hashCode());
}
@Test
public void givenDifferentAddress_whenHashCode_thenPersonsNotEqual() {
String name = "<NAME>";
Person person1 = new Person(name, "100 Linda Ln.");
Person person2 = new Person(name, "200 London Ave.");
assertNotEquals(person1.hashCode(), person2.hashCode());
}
@Test
public void givenValidNameAndAddress_whenGetNameAndAddress_thenExpectedValuesReturned() {
String name = "<NAME>";
String address = "100 Linda Ln.";
Person person = new Person(name, address);
assertEquals(name, person.name());
assertEquals(address, person.address());
}
@Test
public void givenValidNameAndAddress_whenToString_thenCorrectStringReturned() {
String name = "<NAME>";
String address = "100 Linda Ln.";
Person person = new Person(name, address);
assertEquals("Person[name=" + name + ", address=" + address + "]", person.toString());
}
@Test(expected = NullPointerException.class)
public void givenNullName_whenConstruct_thenErrorThrown() {
new Person(null, "100 Linda Ln.");
}
@Test(expected = NullPointerException.class)
public void givenNullAddress_whenConstruct_thenErrorThrown() {
new Person("<NAME>", null);
}
@Test
public void givenUnknownAddress_whenConstructing_thenAddressPopulated() {
String name = "<NAME>";
Person person = new Person(name);
assertEquals(name, person.name());
assertEquals(Person.UNKNOWN_ADDRESS, person.address());
}
@Test
public void givenUnnamed_whenConstructingThroughFactory_thenNamePopulated() {
String address = "100 Linda Ln.";
Person person = Person.unnamed(address);
assertEquals(Person.UNNAMED, person.name());
assertEquals(address, person.address());
}
}
| 1,588 |
11,750 |
try:
# Set matplotlib backend once here
import matplotlib
matplotlib.use("Agg")
except:
pass
| 43 |
2,137 |
<reponame>lxconan/cms-attacking<gh_stars>1000+
package org.hibernate.tool.internal.dialect;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
import org.hibernate.exception.spi.SQLExceptionConverter;
/**
* Iterator over a resultset; intended usage only for metadata reading.
*/
public abstract class ResultSetIterator implements Iterator<Map<String, Object>> {
private ResultSet rs;
protected boolean current = false;
protected boolean endOfRows = false;
private SQLExceptionConverter sec;
private Statement statement = null;
protected ResultSetIterator(ResultSet resultset, SQLExceptionConverter sec) {
this(null, resultset, sec);
}
public ResultSetIterator(Statement stmt, ResultSet resultset, SQLExceptionConverter exceptionConverter) {
this.rs = resultset;
this.sec = exceptionConverter;
this.statement = stmt;
}
protected SQLExceptionConverter getSQLExceptionConverter() {
return sec;
}
public boolean hasNext() {
try {
advance();
return !endOfRows;
}
catch (SQLException e) {
handleSQLException( e );
return false;
}
}
public Map<String, Object> next() {
try {
advance();
if ( endOfRows ) {
throw new NoSuchElementException();
}
current = false;
return convertRow( rs );
}
catch (SQLException e) {
handleSQLException(e);
throw new NoSuchElementException("excpetion occurred " + e);
}
}
abstract protected Throwable handleSQLException(SQLException e);
abstract protected Map<String, Object> convertRow(ResultSet rs) throws SQLException;
public void remove() {
throw new UnsupportedOperationException(
"remove() not possible on ResultSet" );
}
protected void advance() throws SQLException {
if ( !current && !endOfRows ) {
if ( rs.next() ) {
current = true;
endOfRows = false;
}
else {
current = false;
endOfRows = true;
}
}
}
public void close() {
try {
rs.close();
if(statement!=null) {
statement.close();
}
}
catch (SQLException e) {
handleSQLException(e);
}
}
}
| 941 |
3,417 |
from fastapi import APIRouter, Body, Depends, HTTPException, status
from pydantic.error_wrappers import ErrorWrapper, ValidationError
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm import Session
from dispatch.database.core import get_db
from dispatch.database.service import common_parameters, search_filter_sort_paginate
from dispatch.exceptions import ExistsError
from dispatch.models import PrimaryKey
from .models import ServiceCreate, ServicePagination, ServiceRead, ServiceUpdate
from .service import get, create, update, delete, get_by_external_id_and_project_name
router = APIRouter()
@router.get("", response_model=ServicePagination)
def get_services(*, common: dict = Depends(common_parameters)):
"""Retrieve all services."""
return search_filter_sort_paginate(model="Service", **common)
@router.post("", response_model=ServiceRead)
def create_service(
*,
db_session: Session = Depends(get_db),
service_in: ServiceCreate = Body(
...,
example={
"name": "myService",
"type": "pagerduty",
"is_active": True,
"external_id": "234234",
},
),
):
"""Create a new service."""
service = get_by_external_id_and_project_name(
db_session=db_session,
external_id=service_in.external_id,
project_name=service_in.project.name,
)
if service:
raise ValidationError(
[
ErrorWrapper(
ExistsError(msg="A service with this external_id already exists."),
loc="external_id",
)
],
model=ServiceCreate,
)
service = create(db_session=db_session, service_in=service_in)
return service
@router.put("/{service_id}", response_model=ServiceRead)
def update_service(
*, db_session: Session = Depends(get_db), service_id: PrimaryKey, service_in: ServiceUpdate
):
"""Update an existing service."""
service = get(db_session=db_session, service_id=service_id)
if not service:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND,
detail=[{"msg": "A service with this id does not exist."}],
)
try:
service = update(db_session=db_session, service=service, service_in=service_in)
except IntegrityError:
raise ValidationError(
[ErrorWrapper(ExistsError(msg="A service with this name already exists."), loc="name")],
model=ServiceUpdate,
)
return service
@router.get("/{service_id}", response_model=ServiceRead)
def get_service(*, db_session: Session = Depends(get_db), service_id: PrimaryKey):
"""Get a single service."""
service = get(db_session=db_session, service_id=service_id)
if not service:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND,
detail=[{"msg": "A service with this id does not exist."}],
)
return service
@router.delete("/{service_id}")
def delete_service(*, db_session: Session = Depends(get_db), service_id: PrimaryKey):
"""Delete a single service."""
service = get(db_session=db_session, service_id=service_id)
if not service:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND,
detail=[{"msg": "A service with this id does not exist."}],
)
delete(db_session=db_session, service_id=service_id)
| 1,368 |
856 |
<reponame>OlegJakushkin/s3prl
# -*- coding: utf-8 -*- #
"""*********************************************************************************************"""
# FileName [ preprocess_timit.py ]
# Synopsis [ preprocess text transcripts and audio speech for the TIMIT dataset ]
# Author [ <NAME> (Andi611) ]
# Copyright [ Copyleft(c), Speech Lab, NTU, Taiwan ]
# Reference [ https://github.com/Alexander-H-Liu/End-to-end-ASR-Pytorch ]
"""*********************************************************************************************"""
###############
# IMPORTATION #
###############
import os
import sys
import pickle
import argparse
import numpy as np
import pandas as pd
from tqdm import tqdm
from pathlib import Path
from joblib import Parallel, delayed
from utility.audio import extract_feature, num_mels, num_mfcc, num_freq
##################
# BOOLEAB STRING #
##################
def boolean_string(s):
if s not in ['False', 'True']:
raise ValueError('Not a valid boolean string')
return s == 'True'
#############################
# PREPROCESS CONFIGURATIONS #
#############################
def get_preprocess_args():
parser = argparse.ArgumentParser(description='preprocess arguments for LibriSpeech dataset.')
parser.add_argument('--data_path', default='./data/timit', type=str, help='Path to raw TIMIT dataset')
parser.add_argument('--output_path', default='./data/', type=str, help='Path to store output', required=False)
parser.add_argument('--feature_type', default='mel', type=str, help='Feature type ( mfcc / fbank / mel / linear )', required=False)
parser.add_argument('--delta', default=True, type=boolean_string, help='Append Delta', required=False)
parser.add_argument('--delta_delta', default=False, type=boolean_string, help='Append Delta Delta', required=False)
parser.add_argument('--apply_cmvn', default=True, type=boolean_string, help='Apply CMVN on feature', required=False)
parser.add_argument('--n_jobs', default=-1, type=int, help='Number of jobs used for feature extraction', required=False)
parser.add_argument('--name', default='None', type=str, help='Name of the output directory', required=False)
args = parser.parse_args()
return args
##############
# PREPROCESS #
##############
def preprocess(args, dim):
for s in ('train', 'dev', 'test'):
print('')
print(f'Preprocessing {s} data...', end='')
todo = list(Path(os.path.join(args.data_path, s.upper())).rglob("*.[wW][aA][vV]"))
if len(todo) == 0: todo = list(Path(os.path.join(args.data_path, s)).rglob("*.[wW][aA][vV]"))
print(len(todo), f'audio files found in {s} set')
if args.name == 'None':
output_dir = os.path.join(args.output_path, '_'.join(['timit', str(args.feature_type)+str(dim)]))
else:
output_dir = os.path.join(args.output_path, args.name)
if not os.path.exists(output_dir): os.makedirs(output_dir)
cur_path = os.path.join(output_dir, s)
if not os.path.exists(cur_path): os.makedirs(cur_path)
print('Extracting acoustic feature...', flush=True)
tr_x = Parallel(n_jobs=args.n_jobs)(delayed(extract_feature)(str(file), feature=args.feature_type, \
delta=args.delta, delta_delta=args.delta_delta, cmvn=args.apply_cmvn, \
save_feature=os.path.join(cur_path, str(file).split('/')[-1].split('.')[0])) for file in tqdm(todo))
# sort by len
sorted_todo = [os.path.join(s, str(todo[idx]).split('/')[-1].split('.')[0]+'.npy') for idx in reversed(np.argsort(tr_x))]
# Dump data
df = pd.DataFrame(data={'file_path':[fp for fp in sorted_todo], 'length':list(reversed(sorted(tr_x))), 'label':None})
df.to_csv(os.path.join(output_dir, s+'.csv'))
print('All done, saved at', output_dir, 'exit.')
########
# MAIN #
########
def main():
# get arguments
args = get_preprocess_args()
mel_dim = num_mels * (1 + int(args.delta) + int(args.delta_delta))
mfcc_dim = num_mfcc * (1 + int(args.delta) + int(args.delta_delta))
dim = num_freq if args.feature_type == 'linear' else (mfcc_dim if args.feature_type == 'mfcc' else mel_dim)
print('Delta: ', args.delta, '. Delta Delta: ', args.delta_delta, '. Cmvn: ', args.apply_cmvn)
# Process data
preprocess(args, dim)
if __name__ == '__main__':
main()
| 1,770 |
406 |
package com.nirima.jenkins.plugins.docker;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import hudson.model.Node;
import jenkins.model.Jenkins;
/**
* This constant interface defines the identifiers of label keys used at containers, which
* are generated using this plugin.
*
* @author eaglerainbow
*
*/
public final class DockerContainerLabelKeys {
/**
* As requested by https://docs.docker.com/config/labels-custom-metadata/, keys of labels used
* in docker shall be prefixed by a namespace using the reverse DNS notation.
* All label keys of this plugin shall use this namespace as a prefix.
*
* Label keys defined in this interface already have this namespace prefixed.
*/
private static final String PLUGIN_LABEL_KEY_NAMESPACE = DockerContainerLabelKeys.class.getPackage().getName()+".";
/**
* Name of the Docker "label" that we'll put into every container we start,
* setting its value to our {@link DockerTemplateBase#getJenkinsInstanceIdForContainerLabel()}, so that we
* can recognize our own containers later.
*/
static final String JENKINS_INSTANCE_ID = PLUGIN_LABEL_KEY_NAMESPACE + "JenkinsId";
/**
* Name of the Docker "label" that we'll put into every container we start,
* setting its value to our {@link Jenkins#getRootUrl()}, so that we
* can recognize our own containers later.
*/
static final String JENKINS_URL = PLUGIN_LABEL_KEY_NAMESPACE + "JenkinsServerUrl";
/**
* Name of the Docker "label" that we'll put into every container we start,
* setting its value to the value of {@link DockerTemplateBase#getImage()}, so that we
* can recognize our own containers later.
*/
static final String CONTAINER_IMAGE = PLUGIN_LABEL_KEY_NAMESPACE + "JenkinsContainerImage";
/**
* Name of the Docker "label" that we'll put into every container we start,
* setting its value to our {@link Node#getNodeName()}, so that we
* can recognize our own containers later.
*/
@Restricted(NoExternalUse.class)
static final String NODE_NAME = PLUGIN_LABEL_KEY_NAMESPACE + "JenkinsNodeName";
/**
* Name of the Docker "label" that we'll put into every container we start,
* setting its value to the value of {@link DockerTemplate#getName()}, so that we
* can recognize our own containers later.
*/
@Restricted(NoExternalUse.class)
static final String TEMPLATE_NAME = PLUGIN_LABEL_KEY_NAMESPACE + "JenkinsTemplateName";
/**
* Name of the Docker "label" that we'll put into every container we start,
* setting its value to our {@link Node#isRemoveVolumes()}, so that we
* can recognize our own containers later.
*/
@Restricted(NoExternalUse.class)
static final String REMOVE_VOLUMES = PLUGIN_LABEL_KEY_NAMESPACE + "JenkinsRemoveVolumes";
}
| 964 |
301 |
<reponame>ZeroMagic/Community-Policy
{
"resourceGroupSuffix": {
"type": "String",
"metadata": {
"displayName": "Resource Group Suffix",
"description": "Resource Groups containing this suffix will be permitted to deploy only the VM images definied in other parts of this Policy."
}
},
"allowedImagePublishers": {
"type": "Array",
"metadata": {
"displayName": "Allowed Image Publishers",
"description": "Publishers listed here are the only ones approved to be deployed to the target Resource Group. More granularity can be achieved with the Offers parameter below. Use this command to get a list of Publishers: Get-AzVMImagePublisher -Location ''"
},
"defaultValue": "NA"
},
"allowedImageOffers": {
"type": "Array",
"metadata": {
"displayName": "Allowed Image Offers",
"description": "Offers listed here are the only ones approved to be deployed to the target Resource Group. If you want less granularity use the Publishers parameter. Use this command to get a list of Offers: Get-AzVMImageOffer -Location '' -PublisherName ''"
},
"defaultValue": "NA"
}
}
| 443 |
3,212 |
/*
* 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.nifi.controller.repository.schema;
import org.apache.nifi.controller.repository.FlowFileRecord;
import org.apache.nifi.controller.repository.SerializedRepositoryRecord;
import org.apache.nifi.repository.schema.Record;
import org.apache.nifi.repository.schema.RecordSchema;
public class RepositoryRecordFieldMap implements Record {
private final SerializedRepositoryRecord record;
private final FlowFileRecord flowFile;
private final RecordSchema schema;
private final RecordSchema contentClaimSchema;
public RepositoryRecordFieldMap(final SerializedRepositoryRecord record, final RecordSchema repoRecordSchema, final RecordSchema contentClaimSchema) {
this.schema = repoRecordSchema;
this.contentClaimSchema = contentClaimSchema;
this.record = record;
this.flowFile = record.getFlowFileRecord();
}
@Override
public Object getFieldValue(final String fieldName) {
switch (fieldName) {
case RepositoryRecordSchema.ACTION_TYPE:
return record.getType().name();
case RepositoryRecordSchema.RECORD_ID:
return record.getFlowFileRecord().getId();
case RepositoryRecordSchema.SWAP_LOCATION:
return record.getSwapLocation();
case FlowFileSchema.ATTRIBUTES:
return flowFile.getAttributes();
case FlowFileSchema.ENTRY_DATE:
return flowFile.getEntryDate();
case FlowFileSchema.FLOWFILE_SIZE:
return flowFile.getSize();
case FlowFileSchema.LINEAGE_START_DATE:
return flowFile.getLineageStartDate();
case FlowFileSchema.LINEAGE_START_INDEX:
return flowFile.getLineageStartIndex();
case FlowFileSchema.QUEUE_DATE:
return flowFile.getLastQueueDate();
case FlowFileSchema.QUEUE_DATE_INDEX:
return flowFile.getQueueDateIndex();
case FlowFileSchema.CONTENT_CLAIM:
final ContentClaimFieldMap contentClaimFieldMap = record.getContentClaim() == null ? null
: new ContentClaimFieldMap(record.getContentClaim(), record.getClaimOffset(), contentClaimSchema);
return contentClaimFieldMap;
case RepositoryRecordSchema.QUEUE_IDENTIFIER:
return record.getQueueIdentifier();
default:
return null;
}
}
@Override
public RecordSchema getSchema() {
return schema;
}
@Override
public String toString() {
return "RepositoryRecordFieldMap[" + record + "]";
}
}
| 1,304 |
320 |
<filename>src/sound/SDLSoundDriver.hh
#ifndef SDLSOUNDDRIVER_HH
#define SDLSOUNDDRIVER_HH
#include "SoundDriver.hh"
#include "SDLSurfacePtr.hh"
#include "MemBuffer.hh"
#include <SDL.h>
namespace openmsx {
class Reactor;
class SDLSoundDriver final : public SoundDriver
{
public:
SDLSoundDriver(const SDLSoundDriver&) = delete;
SDLSoundDriver& operator=(const SDLSoundDriver&) = delete;
SDLSoundDriver(Reactor& reactor, unsigned wantedFreq, unsigned samples);
~SDLSoundDriver() override;
void mute() override;
void unmute() override;
[[nodiscard]] unsigned getFrequency() const override;
[[nodiscard]] unsigned getSamples() const override;
void uploadBuffer(float* buffer, unsigned len) override;
private:
void reInit();
[[nodiscard]] unsigned getBufferFilled() const;
[[nodiscard]] unsigned getBufferFree() const;
static void audioCallbackHelper(void* userdata, uint8_t* strm, int len);
void audioCallback(float* stream, unsigned len);
private:
Reactor& reactor;
SDL_AudioDeviceID deviceID;
MemBuffer<float> mixBuffer;
unsigned mixBufferSize;
unsigned frequency;
unsigned fragmentSize;
unsigned readIdx, writeIdx;
bool muted;
SDLSubSystemInitializer<SDL_INIT_AUDIO> audioInitializer;
};
} // namespace openmsx
#endif
| 415 |
328 |
<gh_stars>100-1000
/**
* @file olashowfile.cpp
*
*/
/* Copyright (C) 2020 by <NAME> mailto:<EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include <cstdio>
#include <cctype>
#include <cstdint>
#include <cassert>
#include "olashowfile.h"
#include "showfile.h"
#include "hardware.h"
#include "debug.h"
OlaShowFile::OlaShowFile() {
DEBUG1_ENTRY
DEBUG1_EXIT
}
void OlaShowFile::ShowFileStart() {
DEBUG1_ENTRY
m_nDelayMillis = 0;
m_nLastMillis = 0;
fseek(m_pShowFile, 0L, SEEK_SET);
m_tState = OlaState::IDLE;
DEBUG1_EXIT
}
void OlaShowFile::ShowFileStop() {
DEBUG1_ENTRY
DEBUG1_EXIT
}
void OlaShowFile::ShowFileResume() {
DEBUG1_ENTRY
m_nDelayMillis = 0;
m_nLastMillis = 0;
DEBUG1_EXIT
}
void OlaShowFile::ShowFileRun() {
if (m_tState != OlaState::TIME_WAITING) {
m_tParseCode = GetNextLine();
if (m_tParseCode == OlaParseCode::DMX) {
if (m_nDmxDataLength != 0) {
m_pShowFileProtocolHandler->DmxOut(m_nUniverse, m_DmxData, m_nDmxDataLength);
}
} else if (m_tParseCode == OlaParseCode::TIME) {
if (m_nDelayMillis != 0) {
if (m_nDmxDataLength != 0) {
m_pShowFileProtocolHandler->DmxSync();
}
}
m_tState = OlaState::TIME_WAITING;
} else if (m_tParseCode == OlaParseCode::EOFILE) {
if (m_bDoLoop) {
fseek(m_pShowFile, 0L, SEEK_SET);
} else {
SetShowFileStatus(ShowFileStatus::ENDED);
}
}
}
const uint32_t nMillis = Hardware::Get()->Millis();
if ((nMillis - m_nLastMillis) >= m_nDelayMillis) {
m_nLastMillis = nMillis;
m_tState = OlaState::PARSING_DMX;
}
}
OlaParseCode OlaShowFile::ParseDmxData(const char *pLine) {
char *p = const_cast<char *>(pLine);
int64_t k = 0;
uint32_t nLength = 0;
while (isdigit(*p) == 1) {
k = k * 10 + *p - '0';
if (k > 255) {
DEBUG1_EXIT
return OlaParseCode::FAILED;
}
p++;
if (*p == ',' || (isdigit(*p) == 0)) {
if (nLength > 512) {
DEBUG1_EXIT
return OlaParseCode::FAILED;
}
m_DmxData[nLength] = static_cast<uint8_t>(k);
k = 0;
nLength++;
p++;
}
}
m_nDmxDataLength = nLength;
return OlaParseCode::DMX;
}
OlaParseCode OlaShowFile::ParseLine(const char *pLine) {
char *p = const_cast<char*>(pLine);
int32_t k = 0;
while (isdigit(*p) == 1) {
k = k * 10 + *p - '0';
p++;
}
if (k > static_cast<int32_t>((static_cast<uint16_t>(~0)))) {
return OlaParseCode::FAILED;
}
if (*p++ == ' ') {
m_nDelayMillis = 0;
m_nUniverse = static_cast<uint16_t>(k);
return ParseDmxData(p);
}
m_nDelayMillis = static_cast<uint32_t>(k);
return OlaParseCode::TIME;
}
OlaParseCode OlaShowFile::GetNextLine() {
if (m_pShowFile != nullptr) {
if (fgets(s_buffer, (sizeof(s_buffer) - 1), m_pShowFile) != s_buffer) {
return OlaParseCode::EOFILE;
}
if (isdigit(s_buffer[0])) {
return ParseLine(s_buffer);
}
}
return OlaParseCode::FAILED;
}
| 1,634 |
5,169 |
<gh_stars>1000+
{
"name": "GKUtilities",
"version": "0.1.3",
"summary": "GKUtilities component",
"description": "GKUtilities UI component",
"homepage": "http://appus.pro",
"license": "Apache License Version 2.0",
"authors": {
"<NAME>": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
},
"source": {
"git": "https://github.com/alexey-kubas-appus/GKUtilities.git",
"tag": "0.1.3"
},
"vendored_frameworks": "library/GKutilitiesFramework.framework"
}
| 208 |
713 |
package org.infinispan.remoting.transport;
/**
* A listener to be notified when an asynchronous cross-site request is completed.
*
* @author <NAME>
* @since 10.0
*/
@FunctionalInterface
public interface XSiteAsyncAckListener {
/**
* Invoked when an ack for an asynchronous request is received.
* <p>
* If an exception is received (could be a network exception or an exception from the remote site), the {@code
* throwable} is set to a non {@code null} value.
*
* @param sendTimestampNanos The timestamp when the request was sent to the remote site (nanoseconds).
* @param siteName The remote site name.
* @param throwable The exception received (including timeouts and site unreachable) or {@code null}.
*/
void onAckReceived(long sendTimestampNanos, String siteName, Throwable throwable);
}
| 273 |
482 |
<filename>code/iaas/model/src/main/java/io/cattle/platform/core/util/VolumeUtils.java
package io.cattle.platform.core.util;
import org.apache.commons.codec.digest.DigestUtils;
public class VolumeUtils {
public static String externalId(String externalId) {
if (externalId == null) {
return null;
}
if (externalId.length() < 128) {
return externalId;
}
return DigestUtils.md5Hex(externalId);
}
}
| 203 |
310 |
<reponame>DevExpress/PropertyCross<filename>neomad/src/com/propertycross/neomad/event/Event.java
package com.propertycross.neomad.event;
/**
* @author Neomades
*/
public class Event {
public static class Type {
public static final char ERROR = 0x01;
public static final char LOAD = 0x02;
public static final char SAVE = 0x03;
public static final char UPDATE = 0x04;
public static final char UPDATE_LIST = 0x05;
public static final char FIND_BY_NAME = 0x06;
public static final char FIND_BY_NAME_RES = 0x07;
public static final char FIND_BY_LOCATION = 0x08;
public static final char FIND_BY_LOCATION_RES = 0x09;
public static final char FOUND_AMBIGIOUS_RES = 0x0a;
public static final char FIND_ERROR = 0x0b;
public static final char LOAD_PROPERTIES = 0x0c;
public static final char GET_LOCATION = 0x0d;
public static final char GET_LOCATION_RES = 0x0d;
public static final char NETWORK_ERROR = 0x0e;
}
private Object value;
private Object sender;
private String target;
private char type;
public Event(Object value, Object sender, String target, char type) {
this.value = value;
this.sender = sender;
this.target = target;
this.type = type;
}
public Object getValue() {
return value;
}
public Object getSender() {
return sender;
}
public String getTarget() {
return target;
}
public char getType() {
return type;
}
}
| 485 |
1,806 |
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import os.path
from pants.backend.terraform.target_types import (
TerraformModulesGeneratingSourcesField,
TerraformModulesGeneratorTarget,
TerraformModuleTarget,
)
from pants.core.goals.tailor import group_by_dir
from pants.engine.rules import Get, collect_rules, rule
from pants.engine.target import (
GeneratedTargets,
GenerateTargetsRequest,
ImmutableValue,
MultipleSourcesField,
SourcesPaths,
SourcesPathsRequest,
)
from pants.engine.unions import UnionMembership, UnionRule
from pants.util.dirutil import fast_relpath
class GenerateTerraformModuleTargetsRequest(GenerateTargetsRequest):
generate_from = TerraformModulesGeneratorTarget
@rule
async def generate_terraform_module_targets(
request: GenerateTerraformModuleTargetsRequest, union_membership: UnionMembership
) -> GeneratedTargets:
generator = request.generator
sources_paths = await Get(
SourcesPaths, SourcesPathsRequest(generator.get(TerraformModulesGeneratingSourcesField))
)
dir_to_filenames = group_by_dir(sources_paths.files)
matched_dirs = [dir for dir, filenames in dir_to_filenames.items() if filenames]
def gen_target(dir: str) -> TerraformModuleTarget:
generated_target_fields = {}
relpath_to_generator = fast_relpath(dir, generator.address.spec_path)
for field in generator.field_values.values():
value: ImmutableValue | None
if isinstance(field, MultipleSourcesField):
value = tuple(
os.path.join(relpath_to_generator, f) for f in sorted(dir_to_filenames[dir])
)
else:
value = field.value
generated_target_fields[field.alias] = value
return TerraformModuleTarget(
generated_target_fields,
generator.address.create_generated(relpath_to_generator or "."),
union_membership,
residence_dir=dir,
)
return GeneratedTargets(request.generator, [gen_target(dir) for dir in matched_dirs])
def rules():
return [
*collect_rules(),
UnionRule(GenerateTargetsRequest, GenerateTerraformModuleTargetsRequest),
]
| 901 |
677 |
/*
* Copyright (c) 2020 Bitdefender
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _GPACACHE_H_
#define _GPACACHE_H_
#include "introtypes.h"
///
/// Describes on GPA cache entry.
///
typedef struct _GPA_CACHE_ENTRY
{
QWORD Gpa; ///< Gpa this entry maps to.
void *Hva; ///< Host pointer which maps to Gpa.
DWORD HitCount; ///< Number of times this entry was accessed.
DWORD UseCount; ///< Reference count, incremented by calls to #IntGpaCacheFindAndAdd.
BOOLEAN Valid; ///< True if the entry is valid, false otherwise.
} GPA_CACHE_ENTRY, *PGPA_CACHE_ENTRY;
///
/// Describes one GPA cache line. A line consists of multiple entries.
///
typedef struct _GPA_CACHE_LINE
{
GPA_CACHE_ENTRY *Entries; ///< An array of cache entries.
} GPA_CACHE_LINE, *PGPA_CACHE_LINE;
///
/// Describes one victim cache entry. Entries are added to the victim cache if their UseCount is non-zero
/// on eviction.
///
typedef struct _GPA_CACHE_VICTIM
{
LIST_ENTRY Link; ///< Linked list entry.
GPA_CACHE_ENTRY Entry; ///< The actual cache entry.
} GPA_CACHE_VICTIM, *PGPA_CACHE_VICTIM;
///
/// Describes a GPA cache. The layout consists of LinesCount lines x EntriesCount entries. One can think at
/// it as being EntriesCount associative.
///
typedef struct _GPA_CACHE
{
DWORD LinesCount; ///< Number of lines.
DWORD EntriesCount; ///< Number of entries per line.
GPA_CACHE_LINE *Lines; ///< Actual array of cache lines.
LIST_ENTRY Victims; ///< List of victim entries evicted from the cache while UseCount is not 0.
} GPA_CACHE, *PGPA_CACHE;
void
IntGpaCacheDump(
_In_ PGPA_CACHE Cache
);
INTSTATUS
IntGpaCacheInit(
_Inout_ PGPA_CACHE *Cache,
_In_ DWORD LinesCount,
_In_ DWORD EntriesCount
);
INTSTATUS
IntGpaCacheUnInit(
_In_ PGPA_CACHE *Cache
);
INTSTATUS
IntGpaCacheRelease(
_In_ PGPA_CACHE Cache,
_In_ QWORD Gpa
);
INTSTATUS
IntGpaCacheFindAndAdd(
_In_ PGPA_CACHE Cache,
_In_ QWORD Gpa,
_Out_ void **Hva
);
INTSTATUS
IntGpaCacheFetchAndAdd(
_In_ PGPA_CACHE Cache,
_In_ QWORD Gpa,
_In_ DWORD Size,
_Out_ PBYTE Buffer
);
INTSTATUS
IntGpaCachePatchAndAdd(
_In_ PGPA_CACHE Cache,
_In_ QWORD Gpa,
_In_ DWORD Size,
_In_ PBYTE Buffer
);
INTSTATUS
IntGpaCacheFlush(
_In_ PGPA_CACHE Cache
);
#endif // _GPACACHE_H_
| 1,112 |
615 |
//
// Programmer: <NAME> <<EMAIL>>
// Creation Date: Tue Feb 10 21:57:42 PST 2015
// Last Modified: Tue Feb 10 21:57:45 PST 2015
// Filename: midifile/tools/shutak.cpp
// Website: http://midifile.sapp.org
// Syntax: C++11
//
// Description: Convert lines of MIDI note numbers into MIDI files.
// Multiple lines will be placed in multiple tracks.
// Each note has the duration of one second (quarter notes
// at MM60).
//
// Each row of input is a set of numbers for MIDI pitches that are
// played one per second:
// 77 74 81 69 81 62
//
// If there are more than one row, each row is played in parallel
// with the other:
// 66 81 63 79 64 62
// 75 68 66 76 81 66
// 63 64 75 68 77 73
// In this case the first three notes that are played together are:
// (66, 75, 63)
//
#include "Options.h"
#include "MidiFile.h"
#include <string.h>
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
using namespace smf;
// Global variables for command-line options.
Options options; // for command-line processing
// function declarations:
void checkOptions (Options& opts);
void createMidiFile (const char* filename,
vector<vector<int> >& sequence);
void processFile (const string& filename);
void getData (vector<vector<int> >& sequence,
const string& filename);
void example (void);
void usage (const string& command);
///////////////////////////////////////////////////////////////////////////
int main(int argc, char** argv) {
options.setOptions(argc, argv);
checkOptions(options);
string line;
for (int i=1; i<=options.getArgCount(); i++) {
processFile(options.getArg(i));
}
return 0;
}
///////////////////////////////////////////////////////////////////////////
//////////////////////////////
//
// processFile -- Convert file into a MIDI file.
//
void processFile(const string& filename) {
char buffer[1024] = {0};
strncpy(buffer, filename.c_str(),1000);
char* ptr = strrchr(buffer, '.');
if (ptr != NULL) {
*ptr = '\0';
}
strcat(buffer, ".mid");
vector<vector<int> > sequence;
getData(sequence, filename);
createMidiFile(buffer, sequence);
}
//////////////////////////////
//
// createMidiFile --
//
void createMidiFile(const char* filename, vector<vector<int> >& sequence) {
MidiFile midifile;
midifile.absoluteTicks();
midifile.addTrack(1);
int tpq = 120;
double beat = 0.0;
midifile.setTicksPerQuarterNote(tpq);
MidiEvent tempo;
tempo.setMetaTempo(60.0);
tempo.track = 0;
tempo.tick = 0;
midifile.addEvent(tempo);
int maxlen = 0;
int i, j;
for (i=0; i<(int)sequence.size(); i++) {
if ((int)sequence[i].size() > maxlen) {
maxlen = (int)sequence[i].size();
}
}
vector<int> notelist;
MidiEvent noteon(0x90, 0, 64);
MidiEvent noteoff(0x80, 0, 64);
noteon.track = 1;
noteoff.track = 1;
for (i=0; i<maxlen; i++) {
notelist.clear();
for (j=0; j<(int)sequence.size(); j++) {
if (i<(int)sequence[j].size()) {
notelist.push_back(sequence[j][i]);
}
}
for (j=0; j<(int)notelist.size(); j++) {
noteon[1] = 0x7f & notelist[j];
noteoff[1] = 0x7f & notelist[j];
noteon.tick = (int)(beat * tpq + 0.5);
noteoff.tick = (int)(beat * tpq + 1 * tpq + 0.5);
midifile.addEvent(noteon);
midifile.addEvent(noteoff);
}
beat += 1.0;
}
midifile.sortTracks();
midifile.write(filename);
}
//////////////////////////////
//
// getData -- Extract MIDI key numbers from input file.
//
void getData(vector<vector<int> >& sequence, const string& filename) {
ifstream infile;
infile.open(filename.c_str());
string line;
int key;
stringstream sss;
sequence.clear();
vector<int> list;
while (getline(infile, line)) {
cout << "LINE = " << line << "\n";
sss.clear();
list.clear();
sss << line;
while (sss >> key) {
list.push_back(key);
}
if (list.size() == 0) {
continue;
}
sequence.push_back(list);
}
infile.close();
}
//////////////////////////////
//
// checkOptions --
//
void checkOptions(Options& opts) {
opts.define("author=b", "author of the program");
opts.define("version=b", "version of the program");
opts.define("example=b", "example useage of the program");
opts.define("h|help=b", "list of options for the program");
opts.process();
if (opts.getBoolean("author")) {
cout << "Written by <NAME>, "
"<EMAIL>, February 2015" << endl;
exit(0);
} else if (opts.getBoolean("version")) {
cout << "80off, version 1.0 (10 Feb 2015)\n"
"compiled: " << __DATE__ << endl;
exit(0);
} else if (opts.getBoolean("help")) {
usage(opts.getCommand());
exit(0);
} else if (opts.getBoolean("example")) {
example();
exit(0);
}
if (opts.getArgCount() == 0) {
cerr << "Error: One or more input file is required." << endl;
exit(1);
}
}
//////////////////////////////
//
// example -- shows various command-line option calls to program.
//
void example(void) {
cout <<
"\n"
<< endl;
}
//////////////////////////////
//
// usage -- how to run this program from the command-line.
//
void usage(const string& command) {
cout <<
"\n"
<< endl;
}
| 2,485 |
3,262 |
<reponame>code-disaster/halley
#pragma once
#include "halley/core/api/halley_api_internal.h"
namespace Halley {
class CoreAPIWrapper : public CoreAPIInternal {
public:
CoreAPIWrapper(CoreAPI& parent);
void registerPlugin(std::unique_ptr<Plugin> plugin) override;
Vector<Plugin*> getPlugins(PluginType type) override;
void quit(int exitCode) override;
void setStage(StageID stage) override;
void setStage(std::unique_ptr<Stage> stage) override;
void initStage(Stage& stage) override;
Stage& getCurrentStage() override;
HalleyStatics& getStatics() override;
const Environment& getEnvironment() override;
int64_t getTime(CoreAPITimer timer, TimeLine tl, StopwatchRollingAveraging::Mode mode) const override;
void setTimerPaused(CoreAPITimer timer, TimeLine tl, bool paused) override;
bool isDevMode() override;
private:
CoreAPI& parent;
};
}
| 299 |
14,668 |
<reponame>zealoussnow/chromium
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.ui.android.webid.data;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.url.GURL;
/**
* This class holds the data used to represent client ID metadata for display
* in the account chooser dialog.
*/
public class ClientIdMetadata {
private final GURL mTermsOfServiceUrl;
private final GURL mPrivacyPolicyUrl;
/**
* @param termsOfServiceUrl URL for the terms of service for this client ID.
* @param privacyPolicyUrl URL for the privacy policy for this client ID.
*/
@CalledByNative
public ClientIdMetadata(GURL termsOfServiceUrl, GURL privacyPolicyUrl) {
mTermsOfServiceUrl = termsOfServiceUrl;
mPrivacyPolicyUrl = privacyPolicyUrl;
}
public GURL getTermsOfServiceUrl() {
return mTermsOfServiceUrl;
}
public GURL getPrivacyPolicyUrl() {
return mPrivacyPolicyUrl;
}
}
| 370 |
441 |
/**
* XQuery implementation.
*/
package org.basex.query;
| 18 |
1,056 |
<gh_stars>1000+
/*
* 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.netbeans.modules.payara.common;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* Executors Payara tasks.
* <p/>
* @author <NAME>
*/
public class PayaraExecutors {
////////////////////////////////////////////////////////////////////////////
// Inner classes //
////////////////////////////////////////////////////////////////////////////
/**
* Payara log fetchers executor {@see ThreadFactory}.
* <p/>
* Constructs new threads for Payara log fetcher tasks.
*/
private static final class FetchLogThreadFactory implements ThreadFactory {
/**
* Constructs a new {@see Thread}.
* <p/>
* @param r A runnable to be executed by new {@see Thread} instance.
* @return Constructed thread.
*/
@Override
public Thread newThread(Runnable r) {
Thread t = new Thread(tgLog, r, THREAD_GROUP_NAME_LOG);
t.setDaemon(true);
return t;
}
}
/**
* Payara status tasks scheduler {@see ThreadFactory}.
* <p/>
* Constructs new threads for Payara log fetcher tasks.
*/
private static final class StatusThreadFactory
implements java.util.concurrent.ThreadFactory {
/**
* Constructs a new {@see Thread}.
* <p/>
* @param r A runnable to be executed by new {@see Thread} instance.
* @return Constructed thread.
*/
@Override
public Thread newThread(Runnable r) {
Thread t = new Thread(tgStat, r, THREAD_GROUP_NAME_STAT);
t.setDaemon(true);
return t;
}
}
////////////////////////////////////////////////////////////////////////////
// Class attributes //
////////////////////////////////////////////////////////////////////////////
/** Top level thread group name. */
private static final String THREAD_GROUP_NAME_TOP = "Payara";
/** Log reader thread group name. */
private static final String THREAD_GROUP_NAME_LOG = "Log Reader";
/** Log reader thread group name. */
private static final String THREAD_GROUP_NAME_STAT = "Status Task";
/** Top level thread group. */
private static final ThreadGroup tgTop = initTgTop();
/** Thread group for log readers tasks executor. */
private static final ThreadGroup tgLog = initTgLog();
/** Thread group for server status checking tasks executor. */
private static final ThreadGroup tgStat = initTgStat();
/** Minimal number of Payara log fetchers executor threads in thread
* pool. */
private static final int FETCH_LOG_EXECUTOR_POOL_MIN_SIZE = 1;
/** Default maximum number of Payara log fetchers executor threads
* in thread pool. */
private static final int FETCH_LOG_EXECUTOR_POOL_MAX_SIZE
= Integer.MAX_VALUE;
/** Inactive Threads keep alive time [ms] in Payara log fetchers executor
* thread pool. */
private static final long FETCH_LOG_EXECUTOR_POOL_KEEPALIVE_TIME = 0;
/**
* Payara log fetchers executor.
*/
private static final ThreadPoolExecutor fetchLogExecutor
= new ThreadPoolExecutor(
FETCH_LOG_EXECUTOR_POOL_MIN_SIZE,
FETCH_LOG_EXECUTOR_POOL_MAX_SIZE,
FETCH_LOG_EXECUTOR_POOL_KEEPALIVE_TIME,
TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<Runnable>(),
new FetchLogThreadFactory());
////////////////////////////////////////////////////////////////////////////
// Static methods - class attributes initializers //
////////////////////////////////////////////////////////////////////////////
/**
* Initialize top level {@see ThreadGroup} object for threads being created
* in thread factories.
* <p/>
* @return {@see ThreadGroup} object for threads being created
* in this factory.
*/
private static ThreadGroup initTgTop() {
ThreadGroup tg = Thread.currentThread().getThreadGroup();
if (tg != null) {
ThreadGroup tgParrent;
while ((tgParrent = tg.getParent()) != null) {
tg = tgParrent;
}
}
return new ThreadGroup(tg, THREAD_GROUP_NAME_TOP);
}
/**
* Initialize {@see ThreadGroup} object for threads being created
* in thread factory of log readers tasks executor.
* <p/>
* @return {@see ThreadGroup} object for threads being created
* in this factory.
*/
private static ThreadGroup initTgLog() {
return new ThreadGroup(tgTop, THREAD_GROUP_NAME_LOG);
}
/**
* Initialize {@see ThreadGroup} object for threads being created
* in thread factory of server status checking tasks executor.
* <p/>
* @return {@see ThreadGroup} object for threads being created
* in this factory.
*/
private static ThreadGroup initTgStat() {
return new ThreadGroup(tgTop, THREAD_GROUP_NAME_STAT);
}
////////////////////////////////////////////////////////////////////////////
// Static methods //
////////////////////////////////////////////////////////////////////////////
/**
* {@see ExecutorService} class instance for running log fetchers.
* <p/>
* Maximum thread pool size is resized when needed to run all threads.
* <p/>
* @return {@see ExecutorService} class instance for running log fetchers.
*/
public static ExecutorService fetchLogExecutor() {
return fetchLogExecutor;
}
}
| 2,472 |
2,663 |
{
"topic": "Docs Paragraph Styles",
"pageNumber": 7,
"type": "Docs Error - Style",
"definition": {
"text": "This style is used by the system itself to show you when you entered incorrect parameters for some styles. You can use this style as well to show readers errors in the context of what you are explaining to them."
},
"paragraphs": [
{
"style": "Text",
"text": "Anything you type while editing, will be displayed inside the error box."
},
{
"style": "Title",
"text": "Example:"
},
{
"style": "Error",
"text": "This is an example of a paragraph in error style."
}
]
}
| 305 |
453 |
/* libc/sys/linux/sys/errno.h - Errno variable and codes */
/* Written 2000 by <NAME> */
#ifndef _SYS_ERRNO_H
#define _SYS_ERRNO_H
/* --- from newlin's sys/errno.h --- */
#include <sys/reent.h>
#ifndef _REENT_ONLY
#define errno (*__errno())
extern int *__errno _PARAMS ((void));
#endif
extern __IMPORT _CONST char * _CONST _sys_errlist[];
extern __IMPORT int _sys_nerr;
#define __errno_r(ptr) ((ptr)->_errno)
/* --- end of slight redundancy (the use of struct _reent->_errno is
hard-coded in perror.c so why pretend anything else could work too ? */
#define __set_errno(x) (errno = (x))
#include <asm/errno.h>
#define ENOTSUP EOPNOTSUPP
#define EFTYPE 79 /* Inappropriate file type or format */
#define EILSEQ 84
#endif
| 329 |
1,936 |
// Original code Copyright Willowgarage as part of ROS, adapted here (BSD).
// http://ros.org/wiki/vocabulary_tree
#ifndef VOCABULARY_TREE_DISTANCE_H_
#define VOCABULARY_TREE_DISTANCE_H_
#include <stdint.h>
#include <Eigen/Core>
#include <vocabulary-tree/hamming.h>
namespace loop_closure {
namespace distance {
/**
* \brief Meta-function returning a type that can be used to accumulate many
* values of T.
*
* By default, the accumulator type is the same as \c T. Specializations for
* the basic types are:
* \li \c uint8_t -> \c uint32_t
* \li \c uint16_t -> \c uint32_t
* \li \c int8_t -> \c int32_t
* \li \c int16_t -> \c int32_t
* \li \c float -> \c double
*/
template <typename T>
struct Accumulator {
typedef T type;
};
// \cond internal
template <>
struct Accumulator<uint8_t> {
typedef uint32_t type;
};
template <>
struct Accumulator<uint16_t> {
typedef uint32_t type;
};
template <>
struct Accumulator<int8_t> {
typedef int32_t type;
};
template <>
struct Accumulator<int16_t> {
typedef int32_t type;
};
// \endcond
/**
* \brief Default implementation of L2 distance metric.
*
* Works with std::vector, boost::array, or more generally any container that
* has a \c value_type typedef, \c size() and array-indexed element access.
*/
template <class Feature>
struct L2 {
typedef typename Feature::value_type value_type;
typedef typename Accumulator<value_type>::type result_type;
result_type operator()(const Feature& a, const Feature& b) const {
result_type result = result_type();
for (size_t i = 0; i < a.size(); ++i) {
result_type diff = a[i] - b[i];
result += diff * diff;
}
return result;
}
};
// @todo Version for raw data pointers that knows the size of the feature
// @todo Specialization for cv::Vec. Doesn't have size() so default won't work.
// Specialization for Eigen::Matrix types.
template <typename Scalar, int Rows, int Cols, int Options, int MaxRows,
int MaxCols>
struct L2<Eigen::Matrix<Scalar, Rows, Cols, Options, MaxRows, MaxCols> > {
typedef Eigen::Matrix<Scalar, Rows, Cols, Options, MaxRows, MaxCols>
feature_type;
typedef Scalar value_type;
typedef typename Accumulator<Scalar>::type result_type;
result_type operator()(const feature_type& a, const feature_type& b) const {
return (a - b).squaredNorm();
}
};
template <class Feature>
struct Hamming {
typedef typename Feature::value_type value_type;
typedef unsigned int result_type;
result_type operator()(const Feature& a, const Feature& b) const {
CHECK_EQ(a.size(), b.size()) << " a: " << a.size() << " b: " << b.size();
if (a.size() == 64) {
return HammingDistance512(a.data(), b.data());
} else if (a.size() == 48) {
unsigned int sum1 = HammingDistance256(a.data(), b.data());
unsigned int sum2 = HammingDistance128(a.data() + 32, b.data() + 32);
return sum1 + sum2;
} else if (a.size() == 32) {
return HammingDistance256(a.data(), b.data());
} else {
CHECK(a.size() == 64 || a.size() == 48 || a.size() == 32)
<< "Unsupported descriptor length: " << a.size();
return 0;
}
}
};
} // namespace distance
} // namespace loop_closure
#endif // VOCABULARY_TREE_DISTANCE_H_
| 1,216 |
12,252 |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.keycloak.models.sessions.infinispan.events;
import org.keycloak.models.KeycloakSession;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.Objects;
import org.infinispan.commons.marshall.Externalizer;
import org.infinispan.commons.marshall.MarshallUtil;
import org.infinispan.commons.marshall.SerializeWith;
/**
* @author <a href="mailto:<EMAIL>"><NAME></a>
*/
@SerializeWith(ClientRemovedSessionEvent.ExternalizerImpl.class)
public class ClientRemovedSessionEvent extends SessionClusterEvent {
private String clientUuid;
public static ClientRemovedSessionEvent create(KeycloakSession session, String eventKey, String realmId, boolean resendingEvent, String clientUuid) {
ClientRemovedSessionEvent event = ClientRemovedSessionEvent.createEvent(ClientRemovedSessionEvent.class, eventKey, session, realmId, resendingEvent);
event.clientUuid = clientUuid;
return event;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
ClientRemovedSessionEvent that = (ClientRemovedSessionEvent) o;
return Objects.equals(clientUuid, that.clientUuid);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), clientUuid);
}
@Override
public String toString() {
return String.format("ClientRemovedSessionEvent [ realmId=%s , clientUuid=%s ]", getRealmId(), clientUuid);
}
public String getClientUuid() {
return clientUuid;
}
public static class ExternalizerImpl implements Externalizer<ClientRemovedSessionEvent> {
private static final int VERSION_1 = 1;
@Override
public void writeObject(ObjectOutput output, ClientRemovedSessionEvent obj) throws IOException {
output.writeByte(VERSION_1);
obj.marshallTo(output);
MarshallUtil.marshallString(obj.clientUuid, output);
}
@Override
public ClientRemovedSessionEvent readObject(ObjectInput input) throws IOException, ClassNotFoundException {
switch (input.readByte()) {
case VERSION_1:
return readObjectVersion1(input);
default:
throw new IOException("Unknown version");
}
}
public ClientRemovedSessionEvent readObjectVersion1(ObjectInput input) throws IOException, ClassNotFoundException {
ClientRemovedSessionEvent res = new ClientRemovedSessionEvent();
res.unmarshallFrom(input);
res.clientUuid = MarshallUtil.unmarshallString(input);
return res;
}
}
}
| 1,215 |
1,352 |
package com.ruoyi.common.base;
import lombok.Data;
import java.io.Serializable;
/**
* Ztree树结构实体类
*
* @author ruoyi
*/
@Data
public class Ztree implements Serializable {
private static final long serialVersionUID = 1L;
/** 节点ID */
private Long id;
/** 节点父ID */
private Long pId;
/** 节点名称 */
private String name;
/** 节点标题 */
private String title;
/** 是否勾选 */
private boolean checked = false;
/** 是否展开 */
private boolean open = false;
/** 是否能勾选 */
private boolean nocheck = false;
}
| 270 |
372 |
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from builtins import object
import os
import sys
import logging
import threading
from ..dag import walk, ThreadedWalker, UnlimitedSemaphore
from ..plan import Step, build_plan, build_graph
import botocore.exceptions
from stacker.session_cache import get_session
from stacker.exceptions import PlanFailed
from ..status import (
COMPLETE
)
from stacker.util import (
ensure_s3_bucket,
get_s3_endpoint,
)
logger = logging.getLogger(__name__)
# After submitting a stack update/create, this controls how long we'll wait
# between calls to DescribeStacks to check on it's status. Most stack updates
# take at least a couple minutes, so 30 seconds is pretty reasonable and inline
# with the suggested value in
# https://github.com/boto/botocore/blob/1.6.1/botocore/data/cloudformation/2010-05-15/waiters-2.json#L22
#
# This can be controlled via an environment variable, mostly for testing.
STACK_POLL_TIME = int(os.environ.get("STACKER_STACK_POLL_TIME", 30))
def build_walker(concurrency):
"""This will return a function suitable for passing to
:class:`stacker.plan.Plan` for walking the graph.
If concurrency is 1 (no parallelism) this will return a simple topological
walker that doesn't use any multithreading.
If concurrency is 0, this will return a walker that will walk the graph as
fast as the graph topology allows.
If concurrency is greater than 1, it will return a walker that will only
execute a maximum of concurrency steps at any given time.
Returns:
func: returns a function to walk a :class:`stacker.dag.DAG`.
"""
if concurrency == 1:
return walk
semaphore = UnlimitedSemaphore()
if concurrency > 1:
semaphore = threading.Semaphore(concurrency)
return ThreadedWalker(semaphore).walk
def plan(description, stack_action, context,
tail=None, reverse=False):
"""A simple helper that builds a graph based plan from a set of stacks.
Args:
description (str): a description of the plan.
action (func): a function to call for each stack.
context (:class:`stacker.context.Context`): a
:class:`stacker.context.Context` to build the plan from.
tail (func): an optional function to call to tail the stack progress.
reverse (bool): if True, execute the graph in reverse (useful for
destroy actions).
Returns:
:class:`plan.Plan`: The resulting plan object
"""
def target_fn(*args, **kwargs):
return COMPLETE
steps = [
Step(stack, fn=stack_action, watch_func=tail)
for stack in context.get_stacks()]
steps += [
Step(target, fn=target_fn) for target in context.get_targets()]
graph = build_graph(steps)
return build_plan(
description=description,
graph=graph,
targets=context.stack_names,
reverse=reverse)
def stack_template_key_name(blueprint):
"""Given a blueprint, produce an appropriate key name.
Args:
blueprint (:class:`stacker.blueprints.base.Blueprint`): The blueprint
object to create the key from.
Returns:
string: Key name resulting from blueprint.
"""
name = blueprint.name
return "stack_templates/%s/%s-%s.json" % (blueprint.context.get_fqn(name),
name,
blueprint.version)
def stack_template_url(bucket_name, blueprint, endpoint):
"""Produces an s3 url for a given blueprint.
Args:
bucket_name (string): The name of the S3 bucket where the resulting
templates are stored.
blueprint (:class:`stacker.blueprints.base.Blueprint`): The blueprint
object to create the URL to.
endpoint (string): The s3 endpoint used for the bucket.
Returns:
string: S3 URL.
"""
key_name = stack_template_key_name(blueprint)
return "%s/%s/%s" % (endpoint, bucket_name, key_name)
class BaseAction(object):
"""Actions perform the actual work of each Command.
Each action is tied to a :class:`stacker.commands.base.BaseCommand`, and
is responsible for building the :class:`stacker.plan.Plan` that will be
executed to perform that command.
Args:
context (:class:`stacker.context.Context`): The stacker context for
the current run.
provider_builder (:class:`stacker.providers.base.BaseProviderBuilder`,
optional): An object that will build a provider that will be
interacted with in order to perform the necessary actions.
"""
def __init__(self, context, provider_builder=None, cancel=None):
self.context = context
self.provider_builder = provider_builder
self.bucket_name = context.bucket_name
self.cancel = cancel or threading.Event()
self.bucket_region = context.config.stacker_bucket_region
if not self.bucket_region and provider_builder:
self.bucket_region = provider_builder.region
self.s3_conn = get_session(self.bucket_region).client('s3')
def ensure_cfn_bucket(self):
"""The CloudFormation bucket where templates will be stored."""
if self.bucket_name:
ensure_s3_bucket(self.s3_conn,
self.bucket_name,
self.bucket_region)
def stack_template_url(self, blueprint):
return stack_template_url(
self.bucket_name, blueprint, get_s3_endpoint(self.s3_conn)
)
def s3_stack_push(self, blueprint, force=False):
"""Pushes the rendered blueprint's template to S3.
Verifies that the template doesn't already exist in S3 before
pushing.
Returns the URL to the template in S3.
"""
key_name = stack_template_key_name(blueprint)
template_url = self.stack_template_url(blueprint)
try:
template_exists = self.s3_conn.head_object(
Bucket=self.bucket_name, Key=key_name) is not None
except botocore.exceptions.ClientError as e:
if e.response['Error']['Code'] == '404':
template_exists = False
else:
raise
if template_exists and not force:
logger.debug("Cloudformation template %s already exists.",
template_url)
return template_url
self.s3_conn.put_object(Bucket=self.bucket_name,
Key=key_name,
Body=blueprint.rendered,
ServerSideEncryption='AES256',
ACL='bucket-owner-full-control')
logger.debug("Blueprint %s pushed to %s.", blueprint.name,
template_url)
return template_url
def execute(self, *args, **kwargs):
try:
self.pre_run(*args, **kwargs)
self.run(*args, **kwargs)
self.post_run(*args, **kwargs)
except PlanFailed as e:
logger.error(str(e))
sys.exit(1)
def pre_run(self, *args, **kwargs):
pass
def run(self, *args, **kwargs):
raise NotImplementedError("Subclass must implement \"run\" method")
def post_run(self, *args, **kwargs):
pass
def build_provider(self, stack):
"""Builds a :class:`stacker.providers.base.Provider` suitable for
operating on the given :class:`stacker.Stack`."""
return self.provider_builder.build(region=stack.region,
profile=stack.profile)
@property
def provider(self):
"""Some actions need a generic provider using the default region (e.g.
hooks)."""
return self.provider_builder.build()
def _tail_stack(self, stack, cancel, retries=0, **kwargs):
provider = self.build_provider(stack)
return provider.tail_stack(stack, cancel, retries, **kwargs)
| 3,309 |
3,353 |
<filename>tests/utils.h<gh_stars>1000+
#pragma once
#include "pch.h"
std::wstring new_guid();
| 42 |
729 |
/*-
* Copyright (c) 2010 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "test.h"
__FBSDID("$FreeBSD$");
#define USTAR_OPT " --format=ustar"
DEFINE_TEST(test_option_b)
{
char *testprog_ustar;
assertMakeFile("file1", 0644, "file1");
if (systemf("cat file1 > test_cat.out 2> test_cat.err") != 0) {
skipping("This test requires a `cat` program");
return;
}
testprog_ustar = malloc(strlen(testprog) + sizeof(USTAR_OPT) + 1);
strcpy(testprog_ustar, testprog);
strcat(testprog_ustar, USTAR_OPT);
/*
* Bsdtar does not pad if the output is going directly to a disk file.
*/
assertEqualInt(0, systemf("%s -cf archive1.tar file1 >test1.out 2>test1.err", testprog_ustar));
failure("bsdtar does not pad archives written directly to regular files");
assertFileSize("archive1.tar", 2048);
assertEmptyFile("test1.out");
assertEmptyFile("test1.err");
/*
* Bsdtar does pad to the block size if the output is going to a socket.
*/
/* Default is -b 20 */
assertEqualInt(0, systemf("%s -cf - file1 2>test2.err | cat >archive2.tar ", testprog_ustar));
failure("bsdtar does pad archives written to pipes");
assertFileSize("archive2.tar", 10240);
assertEmptyFile("test2.err");
assertEqualInt(0, systemf("%s -cf - -b 20 file1 2>test3.err | cat >archive3.tar ", testprog_ustar));
assertFileSize("archive3.tar", 10240);
assertEmptyFile("test3.err");
assertEqualInt(0, systemf("%s -cf - -b 10 file1 2>test4.err | cat >archive4.tar ", testprog_ustar));
assertFileSize("archive4.tar", 5120);
assertEmptyFile("test4.err");
assertEqualInt(0, systemf("%s -cf - -b 1 file1 2>test5.err | cat >archive5.tar ", testprog_ustar));
assertFileSize("archive5.tar", 2048);
assertEmptyFile("test5.err");
assertEqualInt(0, systemf("%s -cf - -b 8192 file1 2>test6.err | cat >archive6.tar ", testprog_ustar));
assertFileSize("archive6.tar", 4194304);
assertEmptyFile("test6.err");
/*
* Note: It's not possible to verify at this level that blocks
* are getting written with the
*/
free(testprog_ustar);
}
| 1,123 |
1,909 |
package org.knowm.xchange.oer.service;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.IOException;
import java.math.BigDecimal;
import org.junit.Test;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.currency.Currency;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.marketdata.Ticker;
import org.knowm.xchange.oer.OERExchange;
import org.knowm.xchange.oer.dto.marketdata.OERRates;
public class OERMarketDataServiceTest {
@Test
public void testTakesCorrectValueFromOERRates() throws IOException {
Exchange exchange = ExchangeFactory.INSTANCE.createExchange(OERExchange.class);
OERMarketDataService marketDataService =
new OERMarketDataService(exchange) {
@Override
public OERRates getOERTicker(CurrencyPair pair) {
assertThat(pair.base).isEqualTo(Currency.USD);
OERRates r = new OERRates();
r.setAUD(1.23d);
return r;
}
};
Ticker t = marketDataService.getTicker(CurrencyPair.USD_AUD);
assertThat(t.getCurrencyPair()).isEqualTo(CurrencyPair.USD_AUD);
assertThat(t.getLast()).isEqualTo(BigDecimal.valueOf(1.23d));
}
}
| 513 |
2,151 |
<filename>experimental/svg/model/SkSVGAttributeParser.cpp<gh_stars>1000+
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkParse.h"
#include "SkSVGAttributeParser.h"
#include "SkSVGTypes.h"
namespace {
// TODO: these should be shared with SkParse.cpp
inline bool is_between(char c, char min, char max) {
SkASSERT(min <= max);
return (unsigned)(c - min) <= (unsigned)(max - min);
}
inline bool is_eos(char c) {
return !c;
}
inline bool is_ws(char c) {
return is_between(c, 1, 32);
}
inline bool is_sep(char c) {
return is_ws(c) || c == ',' || c == ';';
}
} // anonymous ns
SkSVGAttributeParser::SkSVGAttributeParser(const char attributeString[])
: fCurPos(attributeString) {}
template <typename F>
inline bool SkSVGAttributeParser::advanceWhile(F f) {
auto initial = fCurPos;
while (f(*fCurPos)) {
fCurPos++;
}
return fCurPos != initial;
}
inline bool SkSVGAttributeParser::parseEOSToken() {
return is_eos(*fCurPos);
}
inline bool SkSVGAttributeParser::parseSepToken() {
return this->advanceWhile(is_sep);
}
inline bool SkSVGAttributeParser::parseWSToken() {
return this->advanceWhile(is_ws);
}
inline bool SkSVGAttributeParser::parseExpectedStringToken(const char* expected) {
const char* c = fCurPos;
while (*c && *expected && *c == *expected) {
c++;
expected++;
}
if (*expected) {
return false;
}
fCurPos = c;
return true;
}
bool SkSVGAttributeParser::parseScalarToken(SkScalar* res) {
if (const char* next = SkParse::FindScalar(fCurPos, res)) {
fCurPos = next;
return true;
}
return false;
}
bool SkSVGAttributeParser::parseHexToken(uint32_t* res) {
if (const char* next = SkParse::FindHex(fCurPos, res)) {
fCurPos = next;
return true;
}
return false;
}
bool SkSVGAttributeParser::parseLengthUnitToken(SkSVGLength::Unit* unit) {
static const struct {
const char* fUnitName;
SkSVGLength::Unit fUnit;
} gUnitInfo[] = {
{ "%" , SkSVGLength::Unit::kPercentage },
{ "em", SkSVGLength::Unit::kEMS },
{ "ex", SkSVGLength::Unit::kEXS },
{ "px", SkSVGLength::Unit::kPX },
{ "cm", SkSVGLength::Unit::kCM },
{ "mm", SkSVGLength::Unit::kMM },
{ "in", SkSVGLength::Unit::kIN },
{ "pt", SkSVGLength::Unit::kPT },
{ "pc", SkSVGLength::Unit::kPC },
};
for (size_t i = 0; i < SK_ARRAY_COUNT(gUnitInfo); ++i) {
if (this->parseExpectedStringToken(gUnitInfo[i].fUnitName)) {
*unit = gUnitInfo[i].fUnit;
return true;
}
}
return false;
}
// https://www.w3.org/TR/SVG/types.html#DataTypeColor
bool SkSVGAttributeParser::parseNamedColorToken(SkColor* c) {
if (const char* next = SkParse::FindNamedColor(fCurPos, strlen(fCurPos), c)) {
fCurPos = next;
return true;
}
return false;
}
bool SkSVGAttributeParser::parseHexColorToken(SkColor* c) {
uint32_t v;
const char* initial = fCurPos;
if (!this->parseExpectedStringToken("#") || !this->parseHexToken(&v)) {
return false;
}
switch (fCurPos - initial) {
case 7:
// matched #xxxxxxx
break;
case 4:
// matched '#xxx;
v = ((v << 12) & 0x00f00000) |
((v << 8) & 0x000ff000) |
((v << 4) & 0x00000ff0) |
((v << 0) & 0x0000000f);
break;
default:
return false;
}
*c = v | 0xff000000;
return true;
}
bool SkSVGAttributeParser::parseColorComponentToken(int32_t* c) {
fCurPos = SkParse::FindS32(fCurPos, c);
if (!fCurPos) {
return false;
}
if (*fCurPos == '%') {
*c = SkScalarRoundToInt(*c * 255.0f / 100);
fCurPos++;
}
return true;
}
bool SkSVGAttributeParser::parseRGBColorToken(SkColor* c) {
return this->parseParenthesized("rgb", [this](SkColor* c) -> bool {
int32_t r, g, b;
if (this->parseColorComponentToken(&r) &&
this->parseSepToken() &&
this->parseColorComponentToken(&g) &&
this->parseSepToken() &&
this->parseColorComponentToken(&b)) {
*c = SkColorSetRGB(static_cast<uint8_t>(r),
static_cast<uint8_t>(g),
static_cast<uint8_t>(b));
return true;
}
return false;
}, c);
}
bool SkSVGAttributeParser::parseColor(SkSVGColorType* color) {
SkColor c;
// consume preceding whitespace
this->parseWSToken();
// TODO: rgb(...)
bool parsedValue = false;
if (this->parseHexColorToken(&c)
|| this->parseNamedColorToken(&c)
|| this->parseRGBColorToken(&c)) {
*color = SkSVGColorType(c);
parsedValue = true;
// consume trailing whitespace
this->parseWSToken();
}
return parsedValue && this->parseEOSToken();
}
// https://www.w3.org/TR/SVG/linking.html#IRIReference
bool SkSVGAttributeParser::parseIRI(SkSVGStringType* iri) {
// consume preceding whitespace
this->parseWSToken();
// we only support local fragments
if (!this->parseExpectedStringToken("#")) {
return false;
}
const auto* start = fCurPos;
this->advanceWhile([](char c) -> bool { return !is_eos(c) && c != ')'; });
if (start == fCurPos) {
return false;
}
*iri = SkString(start, fCurPos - start);
return true;
}
// https://www.w3.org/TR/SVG/types.html#DataTypeFuncIRI
bool SkSVGAttributeParser::parseFuncIRI(SkSVGStringType* iri) {
return this->parseParenthesized("url", [this](SkSVGStringType* iri) -> bool {
return this->parseIRI(iri);
}, iri);
}
// https://www.w3.org/TR/SVG/types.html#DataTypeNumber
bool SkSVGAttributeParser::parseNumber(SkSVGNumberType* number) {
// consume WS
this->parseWSToken();
SkScalar s;
if (this->parseScalarToken(&s)) {
*number = SkSVGNumberType(s);
// consume trailing separators
this->parseSepToken();
return true;
}
return false;
}
// https://www.w3.org/TR/SVG/types.html#DataTypeLength
bool SkSVGAttributeParser::parseLength(SkSVGLength* length) {
SkScalar s;
SkSVGLength::Unit u = SkSVGLength::Unit::kNumber;
if (this->parseScalarToken(&s) &&
(this->parseLengthUnitToken(&u) || this->parseSepToken() || this->parseEOSToken())) {
*length = SkSVGLength(s, u);
// consume trailing separators
this->parseSepToken();
return true;
}
return false;
}
// https://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute
bool SkSVGAttributeParser::parseViewBox(SkSVGViewBoxType* vb) {
SkScalar x, y, w, h;
this->parseWSToken();
bool parsedValue = false;
if (this->parseScalarToken(&x) && this->parseSepToken() &&
this->parseScalarToken(&y) && this->parseSepToken() &&
this->parseScalarToken(&w) && this->parseSepToken() &&
this->parseScalarToken(&h)) {
*vb = SkSVGViewBoxType(SkRect::MakeXYWH(x, y, w, h));
parsedValue = true;
// consume trailing whitespace
this->parseWSToken();
}
return parsedValue && this->parseEOSToken();
}
template <typename Func, typename T>
bool SkSVGAttributeParser::parseParenthesized(const char* prefix, Func f, T* result) {
this->parseWSToken();
if (prefix && !this->parseExpectedStringToken(prefix)) {
return false;
}
this->parseWSToken();
if (!this->parseExpectedStringToken("(")) {
return false;
}
this->parseWSToken();
if (!f(result)) {
return false;
}
this->parseWSToken();
return this->parseExpectedStringToken(")");
}
bool SkSVGAttributeParser::parseMatrixToken(SkMatrix* matrix) {
return this->parseParenthesized("matrix", [this](SkMatrix* m) -> bool {
SkScalar scalars[6];
for (int i = 0; i < 6; ++i) {
if (!(this->parseScalarToken(scalars + i) &&
(i > 4 || this->parseSepToken()))) {
return false;
}
}
m->setAll(scalars[0], scalars[2], scalars[4], scalars[1], scalars[3], scalars[5], 0, 0, 1);
return true;
}, matrix);
}
bool SkSVGAttributeParser::parseTranslateToken(SkMatrix* matrix) {
return this->parseParenthesized("translate", [this](SkMatrix* m) -> bool {
SkScalar tx = 0.0, ty = 0.0;
this->parseWSToken();
if (!this->parseScalarToken(&tx)) {
return false;
}
if (!(this->parseSepToken() && this->parseScalarToken(&ty))) {
ty = tx;
}
m->setTranslate(tx, ty);
return true;
}, matrix);
}
bool SkSVGAttributeParser::parseScaleToken(SkMatrix* matrix) {
return this->parseParenthesized("scale", [this](SkMatrix* m) -> bool {
SkScalar sx = 0.0, sy = 0.0;
if (!this->parseScalarToken(&sx)) {
return false;
}
if (!(this->parseSepToken() && this->parseScalarToken(&sy))) {
sy = sx;
}
m->setScale(sx, sy);
return true;
}, matrix);
}
bool SkSVGAttributeParser::parseRotateToken(SkMatrix* matrix) {
return this->parseParenthesized("rotate", [this](SkMatrix* m) -> bool {
SkScalar angle;
if (!this->parseScalarToken(&angle)) {
return false;
}
SkScalar cx = 0;
SkScalar cy = 0;
// optional [<cx> <cy>]
if (this->parseSepToken() && this->parseScalarToken(&cx)) {
if (!(this->parseSepToken() && this->parseScalarToken(&cy))) {
return false;
}
}
m->setRotate(angle, cx, cy);
return true;
}, matrix);
}
bool SkSVGAttributeParser::parseSkewXToken(SkMatrix* matrix) {
return this->parseParenthesized("skewX", [this](SkMatrix* m) -> bool {
SkScalar angle;
if (!this->parseScalarToken(&angle)) {
return false;
}
m->setSkewX(angle);
return true;
}, matrix);
}
bool SkSVGAttributeParser::parseSkewYToken(SkMatrix* matrix) {
return this->parseParenthesized("skewY", [this](SkMatrix* m) -> bool {
SkScalar angle;
if (!this->parseScalarToken(&angle)) {
return false;
}
m->setSkewY(angle);
return true;
}, matrix);
}
// https://www.w3.org/TR/SVG/coords.html#TransformAttribute
bool SkSVGAttributeParser::parseTransform(SkSVGTransformType* t) {
SkMatrix matrix = SkMatrix::I();
bool parsed = false;
while (true) {
SkMatrix m;
if (!( this->parseMatrixToken(&m)
|| this->parseTranslateToken(&m)
|| this->parseScaleToken(&m)
|| this->parseRotateToken(&m)
|| this->parseSkewXToken(&m)
|| this->parseSkewYToken(&m))) {
break;
}
matrix.preConcat(m);
parsed = true;
}
this->parseWSToken();
if (!parsed || !this->parseEOSToken()) {
return false;
}
*t = SkSVGTransformType(matrix);
return true;
}
// https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint
bool SkSVGAttributeParser::parsePaint(SkSVGPaint* paint) {
SkSVGColorType c;
SkSVGStringType iri;
bool parsedValue = false;
if (this->parseColor(&c)) {
*paint = SkSVGPaint(c);
parsedValue = true;
} else if (this->parseExpectedStringToken("none")) {
*paint = SkSVGPaint(SkSVGPaint::Type::kNone);
parsedValue = true;
} else if (this->parseExpectedStringToken("currentColor")) {
*paint = SkSVGPaint(SkSVGPaint::Type::kCurrentColor);
parsedValue = true;
} else if (this->parseExpectedStringToken("inherit")) {
*paint = SkSVGPaint(SkSVGPaint::Type::kInherit);
parsedValue = true;
} else if (this->parseFuncIRI(&iri)) {
*paint = SkSVGPaint(iri.value());
parsedValue = true;
}
return parsedValue && this->parseEOSToken();
}
// https://www.w3.org/TR/SVG/masking.html#ClipPathProperty
bool SkSVGAttributeParser::parseClipPath(SkSVGClip* clip) {
SkSVGStringType iri;
bool parsedValue = false;
if (this->parseExpectedStringToken("none")) {
*clip = SkSVGClip(SkSVGClip::Type::kNone);
parsedValue = true;
} else if (this->parseExpectedStringToken("inherit")) {
*clip = SkSVGClip(SkSVGClip::Type::kInherit);
parsedValue = true;
} else if (this->parseFuncIRI(&iri)) {
*clip = SkSVGClip(iri.value());
parsedValue = true;
}
return parsedValue && this->parseEOSToken();
}
// https://www.w3.org/TR/SVG/painting.html#StrokeLinecapProperty
bool SkSVGAttributeParser::parseLineCap(SkSVGLineCap* cap) {
static const struct {
SkSVGLineCap::Type fType;
const char* fName;
} gCapInfo[] = {
{ SkSVGLineCap::Type::kButt , "butt" },
{ SkSVGLineCap::Type::kRound , "round" },
{ SkSVGLineCap::Type::kSquare , "square" },
{ SkSVGLineCap::Type::kInherit, "inherit" },
};
bool parsedValue = false;
for (size_t i = 0; i < SK_ARRAY_COUNT(gCapInfo); ++i) {
if (this->parseExpectedStringToken(gCapInfo[i].fName)) {
*cap = SkSVGLineCap(gCapInfo[i].fType);
parsedValue = true;
break;
}
}
return parsedValue && this->parseEOSToken();
}
// https://www.w3.org/TR/SVG/painting.html#StrokeLinejoinProperty
bool SkSVGAttributeParser::parseLineJoin(SkSVGLineJoin* join) {
static const struct {
SkSVGLineJoin::Type fType;
const char* fName;
} gJoinInfo[] = {
{ SkSVGLineJoin::Type::kMiter , "miter" },
{ SkSVGLineJoin::Type::kRound , "round" },
{ SkSVGLineJoin::Type::kBevel , "bevel" },
{ SkSVGLineJoin::Type::kInherit, "inherit" },
};
bool parsedValue = false;
for (size_t i = 0; i < SK_ARRAY_COUNT(gJoinInfo); ++i) {
if (this->parseExpectedStringToken(gJoinInfo[i].fName)) {
*join = SkSVGLineJoin(gJoinInfo[i].fType);
parsedValue = true;
break;
}
}
return parsedValue && this->parseEOSToken();
}
// https://www.w3.org/TR/SVG/pservers.html#LinearGradientElementSpreadMethodAttribute
bool SkSVGAttributeParser::parseSpreadMethod(SkSVGSpreadMethod* spread) {
static const struct {
SkSVGSpreadMethod::Type fType;
const char* fName;
} gSpreadInfo[] = {
{ SkSVGSpreadMethod::Type::kPad , "pad" },
{ SkSVGSpreadMethod::Type::kReflect, "reflect" },
{ SkSVGSpreadMethod::Type::kRepeat , "repeat" },
};
bool parsedValue = false;
for (size_t i = 0; i < SK_ARRAY_COUNT(gSpreadInfo); ++i) {
if (this->parseExpectedStringToken(gSpreadInfo[i].fName)) {
*spread = SkSVGSpreadMethod(gSpreadInfo[i].fType);
parsedValue = true;
break;
}
}
return parsedValue && this->parseEOSToken();
}
// https://www.w3.org/TR/SVG/shapes.html#PolygonElementPointsAttribute
bool SkSVGAttributeParser::parsePoints(SkSVGPointsType* points) {
SkTDArray<SkPoint> pts;
bool parsedValue = false;
for (;;) {
this->parseWSToken();
SkScalar x, y;
if (!this->parseScalarToken(&x)) {
break;
}
// comma-wsp:
// (wsp+ comma? wsp*) | (comma wsp*)
bool wsp = this->parseWSToken();
bool comma = this->parseExpectedStringToken(",");
if (!(wsp || comma)) {
break;
}
this->parseWSToken();
if (!this->parseScalarToken(&y)) {
break;
}
pts.push(SkPoint::Make(x, y));
parsedValue = true;
}
if (parsedValue && this->parseEOSToken()) {
*points = pts;
return true;
}
return false;
}
// https://www.w3.org/TR/SVG/painting.html#FillRuleProperty
bool SkSVGAttributeParser::parseFillRule(SkSVGFillRule* fillRule) {
static const struct {
SkSVGFillRule::Type fType;
const char* fName;
} gFillRuleInfo[] = {
{ SkSVGFillRule::Type::kNonZero, "nonzero" },
{ SkSVGFillRule::Type::kEvenOdd, "evenodd" },
{ SkSVGFillRule::Type::kInherit, "inherit" },
};
bool parsedValue = false;
for (size_t i = 0; i < SK_ARRAY_COUNT(gFillRuleInfo); ++i) {
if (this->parseExpectedStringToken(gFillRuleInfo[i].fName)) {
*fillRule = SkSVGFillRule(gFillRuleInfo[i].fType);
parsedValue = true;
break;
}
}
return parsedValue && this->parseEOSToken();
}
// https://www.w3.org/TR/SVG/painting.html#VisibilityProperty
bool SkSVGAttributeParser::parseVisibility(SkSVGVisibility* visibility) {
static const struct {
SkSVGVisibility::Type fType;
const char* fName;
} gVisibilityInfo[] = {
{ SkSVGVisibility::Type::kVisible , "visible" },
{ SkSVGVisibility::Type::kHidden , "hidden" },
{ SkSVGVisibility::Type::kCollapse, "collapse" },
{ SkSVGVisibility::Type::kInherit , "inherit" },
};
bool parsedValue = false;
for (const auto& parseInfo : gVisibilityInfo) {
if (this->parseExpectedStringToken(parseInfo.fName)) {
*visibility = SkSVGVisibility(parseInfo.fType);
parsedValue = true;
break;
}
}
return parsedValue && this->parseEOSToken();
}
// https://www.w3.org/TR/SVG/painting.html#StrokeDasharrayProperty
bool SkSVGAttributeParser::parseDashArray(SkSVGDashArray* dashArray) {
bool parsedValue = false;
if (this->parseExpectedStringToken("none")) {
*dashArray = SkSVGDashArray(SkSVGDashArray::Type::kNone);
parsedValue = true;
} else if (this->parseExpectedStringToken("inherit")) {
*dashArray = SkSVGDashArray(SkSVGDashArray::Type::kInherit);
parsedValue = true;
} else {
SkTDArray<SkSVGLength> dashes;
for (;;) {
SkSVGLength dash;
// parseLength() also consumes trailing separators.
if (!this->parseLength(&dash)) {
break;
}
dashes.push(dash);
parsedValue = true;
}
if (parsedValue) {
*dashArray = SkSVGDashArray(std::move(dashes));
}
}
return parsedValue && this->parseEOSToken();
}
| 8,551 |
892 |
{
"schema_version": "1.2.0",
"id": "GHSA-m67w-v6pq-c7w8",
"modified": "2022-05-13T01:06:34Z",
"published": "2022-05-13T01:06:34Z",
"aliases": [
"CVE-2016-3685"
],
"details": "SAP Download Manager 2.1.142 and earlier generates an encryption key from a small key space on Windows and Mac systems, which allows context-dependent attackers to obtain sensitive configuration information by leveraging knowledge of a hardcoded key in the program code and a computer BIOS serial number, aka SAP Security Note 2282338.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-3685"
},
{
"type": "WEB",
"url": "http://packetstormsecurity.com/files/136172/SAP-Download-Manager-2.1.142-Weak-Encryption.html"
},
{
"type": "WEB",
"url": "http://seclists.org/fulldisclosure/2016/Mar/20"
},
{
"type": "WEB",
"url": "http://www.coresecurity.com/advisories/sap-download-manager-password-weak-encryption"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/537746/100/0/threaded"
}
],
"database_specific": {
"cwe_ids": [
],
"severity": "MODERATE",
"github_reviewed": false
}
}
| 619 |
335 |
{
"word": "Eulogy",
"definitions": [
"A speech or piece of writing that praises someone or something highly, especially a tribute to someone who has just died."
],
"parts-of-speech": "Noun"
}
| 76 |
14,668 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.support_lib_glue;
import android.webkit.WebView;
import com.android.webview.chromium.SharedWebViewRendererClientAdapter;
import org.chromium.android_webview.AwRenderProcess;
import org.chromium.support_lib_boundary.WebViewRendererClientBoundaryInterface;
import org.chromium.support_lib_boundary.util.BoundaryInterfaceReflectionUtil;
import org.chromium.support_lib_boundary.util.Features;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
/**
* Support library glue renderer client callback dapter.
*
* A new instance of this class is created transiently for every shared library
* WebViewCompat call. Do not store state here.
*/
class SupportLibWebViewRendererClientAdapter extends SharedWebViewRendererClientAdapter {
private WebViewRendererClientBoundaryInterface mImpl;
private String[] mSupportedFeatures;
public SupportLibWebViewRendererClientAdapter(
/* WebViewRendererClient */ InvocationHandler invocationHandler) {
mImpl = BoundaryInterfaceReflectionUtil.castToSuppLibClass(
WebViewRendererClientBoundaryInterface.class, invocationHandler);
mSupportedFeatures = mImpl.getSupportedFeatures();
}
@Override
public /* WebViewRendererClient */ InvocationHandler getSupportLibInvocationHandler() {
return Proxy.getInvocationHandler(mImpl);
}
@Override
public void onRendererUnresponsive(final WebView webView, final AwRenderProcess renderProcess) {
if (!BoundaryInterfaceReflectionUtil.containsFeature(
mSupportedFeatures, Features.WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE)) {
return;
}
mImpl.onRendererUnresponsive(webView,
BoundaryInterfaceReflectionUtil.createInvocationHandlerFor(
new SupportLibWebViewRendererAdapter(renderProcess)));
}
@Override
public void onRendererResponsive(final WebView webView, final AwRenderProcess renderProcess) {
if (!BoundaryInterfaceReflectionUtil.containsFeature(
mSupportedFeatures, Features.WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE)) {
return;
}
mImpl.onRendererResponsive(webView,
BoundaryInterfaceReflectionUtil.createInvocationHandlerFor(
new SupportLibWebViewRendererAdapter(renderProcess)));
}
}
| 909 |
335 |
{
"word": "Perfectionism",
"definitions": [
"Refusal to accept any standard short of perfection.",
"A doctrine holding that perfection is attainable, especially the theory that human moral or spiritual perfection should be or has been attained."
],
"parts-of-speech": "Noun"
}
| 97 |
4,538 |
<gh_stars>1000+
/*
* Copyright 1999-2019 Alibaba Cloud 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.
*/
#include <alibabacloud/core/RpcServiceRequest.h>
namespace AlibabaCloud {
RpcServiceRequest::RpcServiceRequest(const std::string &product,
const std::string &version,
const std::string &action)
: ServiceRequest(product, version) {
setActionName(action);
setHeader(std::string("x-acs-action"), action);
}
RpcServiceRequest::~RpcServiceRequest() {}
std::string RpcServiceRequest::actionName() const {
return parameter("Action");
}
void RpcServiceRequest::setActionName(const std::string &name) {
setParameter("Action", name);
}
} // namespace AlibabaCloud
| 417 |
354 |
<filename>src/memhunter.cpp<gh_stars>100-1000
#include "common.h"
void ShowHelp()
{
TraceHelpers::TraceConsole(" _____ _ _ ");
TraceHelpers::TraceConsole("| |___ _____| |_ _ _ ___| |_ ___ ___ ");
TraceHelpers::TraceConsole("| | | | -_| | | | | | _| -_| _|");
TraceHelpers::TraceConsole("|_|_|_|___|_|_|_|_|_|___|_|_|_| |___|_| ");
TraceHelpers::TraceConsole(" Live Memory Forensics Hunter ");
TraceHelpers::TraceConsole("\nMemhunter Version: %s", CustomDefs::MEMHUNTER_VERSION.c_str());
TraceHelpers::TraceConsole("\nAvailable Hunters IDs:");
TraceHelpers::TraceConsole(" %d - Suspicious Threads - It looks for RWX pages on threads base address",
CustomTypes::HunterID::HUNT_SUSPICIOUS_THREADS);
TraceHelpers::TraceConsole(" %d - Suspicious CallStack - It perform thread callstack analysis to check on suspicious patterns",
CustomTypes::HunterID::HUNT_SUSPICIOUS_CALLSTACK);
TraceHelpers::TraceConsole(" %d - Suspicious Exports - It looks for know bad exports",
CustomTypes::HunterID::HUNT_SUSPICIOUS_EXPORTS);
TraceHelpers::TraceConsole(" %d - Suspicious Hollowed Modules - It performs PE Header comparison of on-memory modules vs on-disk counterpart",
CustomTypes::HunterID::HUNT_SUSPICIOUS_HOLLOWS);
TraceHelpers::TraceConsole(" %d - Suspicious Modules - It looks for RWX memory regions on modules memory areas",
CustomTypes::HunterID::HUNT_SUSPICIOUS_MODULES);
TraceHelpers::TraceConsole(" %d - Suspicious Parents - It looks for suspicious parents",
CustomTypes::HunterID::HUNT_SUSPICIOUS_PARENTS);
TraceHelpers::TraceConsole(" %d - Suspicious Regions - It looks for wiped PE headers on section related memory areas",
CustomTypes::HunterID::HUNT_SUSPICIOUS_REGIONS);
TraceHelpers::TraceConsole(" %d - Suspicious Registry - It looks for well-know persistence, evasion techniques on the registry",
CustomTypes::HunterID::HUNT_SUSPICIOUS_REGISTRY_PERSISTENCE);
TraceHelpers::TraceConsole(" %d - Suspicious Shellcode - It performs fuzzy matching on commited memory to look for function prologues",
CustomTypes::HunterID::HUNT_SUSPICIOUS_SHELLCODE);
TraceHelpers::TraceConsole("\nAvailable Options:");
TraceHelpers::TraceConsole(" -c <conf_file> Path to configuration file");
TraceHelpers::TraceConsole(" -m <id_list> List of Hunters to use. All included by Default");
TraceHelpers::TraceConsole(" -d Enable Dissolvable mode. Disabled by Default");
TraceHelpers::TraceConsole(" -f Enable False Positive Mitigations. Enabled by Default");
TraceHelpers::TraceConsole(" -r <verbose|regular|minimal> Report Verbosity Options. Regular by Default");
TraceHelpers::TraceConsole(" -e <exclusion_list> List of Processes To Exclude");
TraceHelpers::TraceConsole(" -o <console|eventlog> Report Output Options. Console by Default");
TraceHelpers::TraceConsole(" -y <path> Path to YARA Rules to use");
TraceHelpers::TraceConsole(" -v <path> Path to VirusTotal license to use");
TraceHelpers::TraceConsole(" -h Display help information");
TraceHelpers::TraceConsole("\nUsage Example:");
TraceHelpers::TraceConsole(" -h for help Help");
TraceHelpers::TraceConsole(" -c <config_file> Configuration File");
TraceHelpers::TraceConsole(" -f -o eventlog -m 1,2,3 Normal Usage");
}
int wmain(int argc, wchar_t *argv[])
{
int ret = EXIT_FAILURE;
//Check if process is running as Administrator and DEBUG token privileges can be enabled
if (GeneralHelpers::IsRunningAsAdmin() && GeneralHelpers::EnableTokenPrivilege(SE_DEBUG_NAME))
{
if (!ConfigManager::GetInstance().Initialize(argc, argv))
{
ShowHelp();
}
else
{
//Same binary supports two running modes
//Checking if main thread needs to run as a service
if (ConfigManager::GetInstance().IsServiceModeEnabled())
{
//Running as a service
CollectorService::GetInstance().RunService();
}
else
{
//Checking if service is registered, if yes make sure that it is running
if (ConfigManager::GetInstance().IsServiceDataAvailable())
{
//and making sure that service is still running
if (ServiceHelpers::IsServiceStopped(CustomDefs::SERVICE_NAME))
{
//Starting the service
if (!ServiceHelpers::StartTargetService(CustomDefs::SERVICE_NAME))
{
TraceHelpers::TraceConsoleDown("There was a problem starting collector service. Service is currently stopped.");
}
}
}
else
{
TraceHelpers::TraceConsoleDown("There was a problem with collection service. No collected data will be available.");
}
//Run hunters orchestration logic
if (HuntersOrchestration::GetInstance().Run())
{
ret = EXIT_SUCCESS;
}
else
{
TraceHelpers::TraceConsoleDown("There was a problem orchestrating the registered hunters.");
}
}
}
}
else
{
TraceHelpers::TraceConsoleDown("This process should be with Administrator privileges. Showing help and quitting now.");
ShowHelp();
}
return ret;
}
| 1,799 |
719 |
<filename>katrain/core/utils.py
import heapq
import math
import os
import random
import struct
import sys
from typing import List, Tuple, TypeVar
try:
import importlib.resources as pkg_resources
except ImportError:
import importlib_resources as pkg_resources
T = TypeVar("T")
def var_to_grid(array_var: List[T], size: Tuple[int, int]) -> List[List[T]]:
"""convert ownership/policy to grid format such that grid[y][x] is for move with coords x,y"""
ix = 0
grid = [[]] * size[1]
for y in range(size[1] - 1, -1, -1):
grid[y] = array_var[ix : ix + size[0]]
ix += size[0]
return grid
def evaluation_class(points_lost: float, eval_thresholds: List[float]):
i = 0
while i < len(eval_thresholds) - 1 and points_lost < eval_thresholds[i]:
i += 1
return i
def check_thread(tb=False): # for checking if draws occur in correct thread
import threading
print("build in ", threading.current_thread().ident)
if tb:
import traceback
traceback.print_stack()
PATHS = {}
def find_package_resource(path, silent_errors=False):
global PATHS
if path.startswith("katrain"):
if not PATHS.get("PACKAGE"):
try:
with pkg_resources.path("katrain", "gui.kv") as p:
PATHS["PACKAGE"] = os.path.split(str(p))[0]
except (ModuleNotFoundError, FileNotFoundError, ValueError) as e:
print(f"Package path not found, installation possibly broken. Error: {e}", file=sys.stderr)
return f"FILENOTFOUND/{path}"
return os.path.join(PATHS["PACKAGE"], path.replace("katrain\\", "katrain/").replace("katrain/", ""))
else:
return os.path.abspath(os.path.expanduser(path)) # absolute path
def pack_floats(float_list):
if float_list is None:
return b""
return struct.pack(f"{len(float_list)}e", *float_list)
def unpack_floats(str, num):
if not str:
return None
return struct.unpack(f"{num}e", str)
def format_visits(n):
if n < 1000:
return str(n)
if n < 1e5:
return f"{n/1000:.1f}k"
if n < 1e6:
return f"{n/1000:.0f}k"
return f"{n/1e6:.0f}M"
def json_truncate_arrays(data, lim=20):
if isinstance(data, list):
if data and isinstance(data[0], dict):
return [json_truncate_arrays(d) for d in data]
if len(data) > lim:
data = [f"{len(data)} x {type(data[0]).__name__}"]
return data
elif isinstance(data, dict):
return {k: json_truncate_arrays(v) for k, v in data.items()}
else:
return data
def weighted_selection_without_replacement(items: List[Tuple], pick_n: int) -> List[Tuple]:
"""For a list of tuples where the second element is a weight, returns random items with those weights, without replacement."""
elt = [(math.log(random.random()) / (item[1] + 1e-18), item) for item in items] # magic
return [e[1] for e in heapq.nlargest(pick_n, elt)] # NB fine if too small
| 1,303 |
3,428 |
{"id":"00776","group":"spam-2","checksum":{"type":"MD5","value":"22f3f3942932c3d3b6e254bcab9673d1"},"text":"From <EMAIL> Mon Jul 22 18:34:42 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: [email protected]\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id ED695440C8\n\tfor <jm@localhost>; Mon, 22 Jul 2002 13:34:40 -0400 (EDT)\nReceived: from dogma.slashnull.org [2172.16.31.105]\n\tby localhost with IMAP (fetchmail-5.9.0)\n\tfor jm@localhost (single-drop); Mon, 22 Jul 2002 18:34:40 +0100 (IST)\nReceived: from webnote.net (mail.webnote.net [193.120.211.219]) by\n dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g6MFHW902214 for\n <<EMAIL>>; Mon, 22 Jul 2002 16:17:33 +0100\nReceived: from mandark.labs.netnoteinc.com ([172.16.17.3240]) by\n webnote.net (8.9.3/8.9.3) with ESMTP id NAA31763 for <<EMAIL>>;\n Mon, 22 Jul 2002 13:21:26 +0100\nFrom: <EMAIL>\nReceived: from smtp2.cn.tom.com ([172.16.31.10]) by\n mandark.labs.netnoteinc.com (8.11.6/8.11.6) with SMTP id g6MCLNp09137 for\n <<EMAIL>>; Mon, 22 Jul 2002 13:21:24 +0100\nReceived: (qmail 7411 invoked from network); 22 Jul 2002 12:14:46 -0000\nReceived: from unknown (HELO ukmax-com-bk.mr.outblaze.com) (62.17.145.92)\n by 172.16.31.10 with SMTP; 22 Jul 2002 12:14:46 -0000\nMessage-Id: <<EMAIL>>\nTo: <<EMAIL>>\nCc: <<EMAIL>>, <<EMAIL>>,\n\t<<EMAIL>>, <<EMAIL>>, <<EMAIL>>,\n\t<<EMAIL>>, <<EMAIL>>\nSubject: .* Mortgage Approved*\nDate: Thu, 18 Jul 2002 20:31:29 -1900\nMIME-Version: 1.0\nX-Mailer: Microsoft Outlook Express 5.59.4133.2410\nContent-Type: text/html; charset=\"iso-8859-1\"\nContent-Transfer-Encoding: quoted-printable\n\n<HTML><FONT SIZE=3D2 PTSIZE=3D10 FAMILY=3D\"SANSSERIF\" FACE=3D\"Arial\" LANG=3D=\n\"0\">Congratulations! Your mortgage<BR>\n<BR>\nhas been approved. <BR>\n<BR>\n<A HREF=3D\"http://192.168.3.11/host/site1/\">Click Here</A><BR>\n<BR>\n<BR>\n<BR>\n<BR>\n<BR>\nTo be removed <A HREF=3D\"http://192.168.3.11/host/remove/\">Click here</A>=\n</FONT></HTML>\n\n\n\n\n"}
| 932 |
340 |
# -*- coding: utf-8 -*-
from ..regression import least_squares, irls
from ..testing import requires
@requires("numpy")
def test_irls():
import numpy as np
x = np.linspace(0, 100)
y = np.exp(-x / 47)
b, c, info = irls(x, np.log(y))
assert abs(b[1] + 1 / 47) < 1e-5
assert np.all(c < 1e-4)
assert info["success"] is True
assert info["niter"] < 3
@requires("numpy")
def test_least_squares():
import numpy as np
x, y, w = [0, 1, 2], [0, 1, 2], [1, 1, 1]
beta, vcv, r2 = least_squares(x, y)
assert np.allclose(beta, [0, 1])
assert np.allclose(vcv, 0)
assert np.allclose(r2, 1)
wbeta, wvcv, wr2 = least_squares(x, y, w)
assert np.allclose(wbeta, [0, 1])
assert np.allclose(wvcv, 0)
assert np.allclose(wr2, 1)
| 370 |
3,913 |
<reponame>inprise1980/ruoyi-vue-pro
package cn.iocoder.yudao.coreservice.modules.infra.service.file.impl;
import cn.hutool.core.io.FileTypeUtil;
import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.file.InfFileDO;
import cn.iocoder.yudao.coreservice.modules.infra.dal.mysql.file.InfFileCoreMapper;
import cn.iocoder.yudao.coreservice.modules.infra.framework.file.config.FileProperties;
import cn.iocoder.yudao.coreservice.modules.infra.service.file.InfFileCoreService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.io.ByteArrayInputStream;
import static cn.iocoder.yudao.coreservice.modules.system.enums.SysErrorCodeConstants.*;
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
/**
* core service 文件实现类
*
* @author 宋天
*/
@Service
public class InfFileCoreServiceImpl implements InfFileCoreService {
@Resource
private InfFileCoreMapper fileMapper;
@Resource
private FileProperties fileProperties;
@Override
public String createFile(String path, byte[] content) {
if (fileMapper.selectCountById(path) > 0) {
throw exception(FILE_PATH_EXISTS);
}
// 保存到数据库
InfFileDO file = new InfFileDO();
file.setId(path);
file.setType(FileTypeUtil.getType(new ByteArrayInputStream(content)));
file.setContent(content);
fileMapper.insert(file);
// 拼接路径返回
return fileProperties.getBasePath() + path;
}
@Override
public void deleteFile(String id) {
// 校验存在
this.validateFileExists(id);
// 更新
fileMapper.deleteById(id);
}
private void validateFileExists(String id) {
if (fileMapper.selectById(id) == null) {
throw exception(FILE_NOT_EXISTS);
}
}
@Override
public InfFileDO getFile(String path) {
return fileMapper.selectById(path);
}
}
| 848 |
765 |
//===-- RangeTest.cpp ----------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "lldb/Utility/RangeMap.h"
#include <cstdint>
#include <type_traits>
#include "gtest/gtest.h"
using namespace lldb;
using namespace lldb_private;
TEST(RangeTest, SizeTypes) {
Range<lldb::addr_t, uint32_t> r;
static_assert(std::is_same<lldb::addr_t, decltype(r.GetRangeBase())>::value,
"RangeBase type is not equal to the given one.");
static_assert(std::is_same<lldb::addr_t, decltype(r.GetRangeEnd())>::value,
"RangeEnd type is not equal to the given one.");
static_assert(std::is_same<uint32_t, decltype(r.GetByteSize())>::value,
"Size type is not equal to the given one.");
}
typedef Range<lldb::addr_t, uint32_t> RangeT;
TEST(RangeTest, DefaultConstructor) {
RangeT r;
EXPECT_FALSE(r.IsValid());
EXPECT_EQ(0U, r.GetByteSize());
EXPECT_EQ(0U, r.GetRangeBase());
EXPECT_EQ(0U, r.GetRangeEnd());
}
TEST(RangeTest, Constructor) {
RangeT r(3, 5);
EXPECT_TRUE(r.IsValid());
EXPECT_EQ(5U, r.GetByteSize());
EXPECT_EQ(3U, r.GetRangeBase());
EXPECT_EQ(8U, r.GetRangeEnd());
}
TEST(RangeTest, Copy) {
RangeT orig(3, 5);
RangeT r = orig;
EXPECT_TRUE(r.IsValid());
EXPECT_EQ(5U, r.GetByteSize());
EXPECT_EQ(3U, r.GetRangeBase());
EXPECT_EQ(8U, r.GetRangeEnd());
}
TEST(RangeTest, Clear) {
RangeT r(3, 5);
r.Clear();
EXPECT_TRUE(r == RangeT());
}
TEST(RangeTest, ClearWithStarAddress) {
RangeT r(3, 5);
r.Clear(4);
EXPECT_TRUE(r == RangeT(4, 0));
}
TEST(RangeTest, SetRangeBase) {
RangeT r(3, 5);
r.SetRangeBase(6);
EXPECT_EQ(6U, r.GetRangeBase());
EXPECT_EQ(11U, r.GetRangeEnd());
EXPECT_EQ(5U, r.GetByteSize());
}
TEST(RangeTest, Slide) {
RangeT r(3, 5);
r.Slide(1);
EXPECT_EQ(4U, r.GetRangeBase());
EXPECT_EQ(9U, r.GetRangeEnd());
EXPECT_EQ(5U, r.GetByteSize());
r.Slide(2);
EXPECT_EQ(6U, r.GetRangeBase());
EXPECT_EQ(11U, r.GetRangeEnd());
EXPECT_EQ(5U, r.GetByteSize());
}
TEST(RangeTest, SlideZero) {
RangeT r(3, 5);
r.Slide(0);
EXPECT_EQ(3U, r.GetRangeBase());
EXPECT_EQ(8U, r.GetRangeEnd());
EXPECT_EQ(5U, r.GetByteSize());
}
TEST(RangeTest, ContainsAddr) {
RangeT r(3, 5);
EXPECT_FALSE(r.Contains(0));
EXPECT_FALSE(r.Contains(1));
EXPECT_FALSE(r.Contains(2));
EXPECT_TRUE(r.Contains(3));
EXPECT_TRUE(r.Contains(4));
EXPECT_TRUE(r.Contains(5));
EXPECT_TRUE(r.Contains(6));
EXPECT_TRUE(r.Contains(7));
EXPECT_FALSE(r.Contains(8));
EXPECT_FALSE(r.Contains(9));
EXPECT_FALSE(r.Contains(10));
}
TEST(RangeTest, ContainsAddrInvalid) {
RangeT r;
EXPECT_FALSE(r.Contains(0));
EXPECT_FALSE(r.Contains(1));
EXPECT_FALSE(r.Contains(2));
EXPECT_FALSE(r.Contains(3));
EXPECT_FALSE(r.Contains(4));
}
TEST(RangeTest, ContainsEndInclusive) {
RangeT r(3, 5);
EXPECT_FALSE(r.ContainsEndInclusive(0));
EXPECT_FALSE(r.ContainsEndInclusive(1));
EXPECT_FALSE(r.ContainsEndInclusive(2));
EXPECT_TRUE(r.ContainsEndInclusive(3));
EXPECT_TRUE(r.ContainsEndInclusive(4));
EXPECT_TRUE(r.ContainsEndInclusive(5));
EXPECT_TRUE(r.ContainsEndInclusive(6));
EXPECT_TRUE(r.ContainsEndInclusive(7));
EXPECT_TRUE(r.ContainsEndInclusive(8));
EXPECT_FALSE(r.ContainsEndInclusive(9));
EXPECT_FALSE(r.ContainsEndInclusive(10));
}
TEST(RangeTest, ContainsEndInclusiveInvalid) {
RangeT r;
// FIXME: This is probably not intended.
EXPECT_TRUE(r.ContainsEndInclusive(0));
EXPECT_FALSE(r.ContainsEndInclusive(1));
EXPECT_FALSE(r.ContainsEndInclusive(2));
}
TEST(RangeTest, ContainsRange) {
RangeT r(3, 5);
// Range always contains itself.
EXPECT_TRUE(r.Contains(r));
// Invalid range.
EXPECT_FALSE(r.Contains(RangeT()));
// Range starts and ends before.
EXPECT_FALSE(r.Contains(RangeT(0, 3)));
// Range starts before but contains beginning.
EXPECT_FALSE(r.Contains(RangeT(0, 4)));
// Range starts before but contains beginning and more.
EXPECT_FALSE(r.Contains(RangeT(0, 5)));
// Range starts before and contains the other.
EXPECT_FALSE(r.Contains(RangeT(0, 9)));
// Range is fully inside.
EXPECT_TRUE(r.Contains(RangeT(4, 3)));
// Range has same start, but not as large.
EXPECT_TRUE(r.Contains(RangeT(3, 4)));
// Range has same end, but starts earlier.
EXPECT_TRUE(r.Contains(RangeT(4, 4)));
// Range starts inside, but stops after the end of r.
EXPECT_FALSE(r.Contains(RangeT(4, 5)));
// Range starts directly after r.
EXPECT_FALSE(r.Contains(RangeT(8, 2)));
// Range starts directly after r.
EXPECT_FALSE(r.Contains(RangeT(9, 2)));
// Invalid range with different start.
// FIXME: The first two probably not intended.
EXPECT_TRUE(r.Contains(RangeT(3, 0)));
EXPECT_TRUE(r.Contains(RangeT(4, 0)));
EXPECT_FALSE(r.Contains(RangeT(8, 0)));
}
TEST(RangeTest, ContainsRangeStartingFromZero) {
RangeT r(0, 3);
EXPECT_TRUE(r.Contains(r));
// FIXME: This is probably not intended.
EXPECT_TRUE(r.Contains(RangeT()));
}
TEST(RangeTest, Union) {
RangeT r(3, 5);
// Ranges that we can't merge because it's not adjoin/intersecting.
EXPECT_FALSE(r.Union(RangeT(9, 1)));
// Check that we didn't modify our range.
EXPECT_EQ(r, RangeT(3, 5));
// Another range we can't merge, but before r.
EXPECT_FALSE(r.Union(RangeT(1, 1)));
EXPECT_EQ(r, RangeT(3, 5));
// Merge an adjoin range after.
EXPECT_TRUE(r.Union(RangeT(8, 2)));
EXPECT_EQ(r, RangeT(3, 7));
// Merge an adjoin range before.
EXPECT_TRUE(r.Union(RangeT(1, 2)));
EXPECT_EQ(r, RangeT(1, 9));
// Merge an intersecting range after.
EXPECT_TRUE(r.Union(RangeT(8, 3)));
EXPECT_EQ(r, RangeT(1, 10));
// Merge an intersecting range before.
EXPECT_TRUE(r.Union(RangeT(0, 1)));
EXPECT_EQ(r, RangeT(0, 11));
// Merge a few ranges inside that shouldn't do anything.
EXPECT_TRUE(r.Union(RangeT(0, 3)));
EXPECT_EQ(r, RangeT(0, 11));
EXPECT_TRUE(r.Union(RangeT(5, 1)));
EXPECT_EQ(r, RangeT(0, 11));
EXPECT_TRUE(r.Union(RangeT(9, 2)));
EXPECT_EQ(r, RangeT(0, 11));
}
TEST(RangeTest, DoesAdjoinOrIntersect) {
RangeT r(3, 4);
EXPECT_FALSE(r.DoesAdjoinOrIntersect(RangeT(1, 1)));
EXPECT_TRUE(r.DoesAdjoinOrIntersect(RangeT(1, 2)));
EXPECT_TRUE(r.DoesAdjoinOrIntersect(RangeT(2, 2)));
EXPECT_TRUE(r.DoesAdjoinOrIntersect(RangeT(4, 2)));
EXPECT_TRUE(r.DoesAdjoinOrIntersect(RangeT(6, 2)));
EXPECT_TRUE(r.DoesAdjoinOrIntersect(RangeT(7, 2)));
EXPECT_FALSE(r.DoesAdjoinOrIntersect(RangeT(8, 2)));
}
TEST(RangeTest, DoesIntersect) {
RangeT r(3, 4);
EXPECT_FALSE(r.DoesIntersect(RangeT(1, 1)));
EXPECT_FALSE(r.DoesIntersect(RangeT(1, 2)));
EXPECT_TRUE(r.DoesIntersect(RangeT(2, 2)));
EXPECT_TRUE(r.DoesIntersect(RangeT(4, 2)));
EXPECT_TRUE(r.DoesIntersect(RangeT(6, 2)));
EXPECT_FALSE(r.DoesIntersect(RangeT(7, 2)));
EXPECT_FALSE(r.DoesIntersect(RangeT(8, 2)));
}
TEST(RangeTest, LessThan) {
RangeT r(10, 20);
// Equal range.
EXPECT_FALSE(r < RangeT(10, 20));
EXPECT_FALSE(RangeT(10, 20) < r);
auto expect_ordered_less_than = [](RangeT r1, RangeT r2) {
EXPECT_TRUE(r1 < r2);
EXPECT_FALSE(r2 < r1);
};
// Same start, but bigger size.
expect_ordered_less_than(r, RangeT(10, 21));
// Start before and ends before.
expect_ordered_less_than(RangeT(9, 20), r);
// Start before and equal size.
expect_ordered_less_than(RangeT(9, 21), r);
// Start before and bigger size.
expect_ordered_less_than(RangeT(9, 22), r);
// Start after and ends before.
expect_ordered_less_than(r, RangeT(11, 18));
// Start after and equal size.
expect_ordered_less_than(r, RangeT(11, 19));
// Start after and bigger size.
expect_ordered_less_than(r, RangeT(11, 20));
}
TEST(RangeTest, Equal) {
RangeT r(10, 20);
// Equal range.
EXPECT_TRUE(r == RangeT(10, 20));
// Same start, different size.
EXPECT_FALSE(r == RangeT(10, 21));
// Different start, same size.
EXPECT_FALSE(r == RangeT(9, 20));
// Different start, different size.
EXPECT_FALSE(r == RangeT(9, 21));
EXPECT_FALSE(r == RangeT(11, 19));
}
TEST(RangeTest, NotEqual) {
RangeT r(10, 20);
EXPECT_FALSE(r != RangeT(10, 20));
EXPECT_TRUE(r != RangeT(10, 21));
EXPECT_TRUE(r != RangeT(9, 20));
EXPECT_TRUE(r != RangeT(9, 21));
}
// Comparison tests for invalid ranges (size == 0).
TEST(RangeTest, LessThanInvalid) {
EXPECT_TRUE(RangeT() < RangeT(1, 0));
EXPECT_TRUE(RangeT() < RangeT(2, 0));
EXPECT_TRUE(RangeT(1, 0) < RangeT(2, 0));
}
TEST(RangeTest, EqualInvalid) {
RangeT r;
EXPECT_TRUE(r == RangeT());
// Another invalid range, but with a different start.
EXPECT_FALSE(r == RangeT(3, 0));
}
TEST(RangeTest, NotEqualInvalid) {
RangeT r;
EXPECT_FALSE(r != RangeT());
EXPECT_FALSE(r == RangeT(3, 0));
}
| 3,806 |
3,252 |
<reponame>dk25021999/mmf
import json
import pandas as pd
import torch
from mmf.utils.file_io import PathManager
class CaptionsDatabase(torch.utils.data.Dataset):
"""
Dataset for Flickr Annotations
"""
SPLITS = {"train": ["train"], "val": ["val"], "test": ["test"]}
def __init__(self, config, splits_path, dataset_type: str, *args, **kwargs):
super().__init__()
self.config = config
self.dataset_type = dataset_type
self.splits = self.SPLITS[self.dataset_type]
self._load_annotation_db(splits_path)
def _load_annotation_db(self, splits_path):
data = []
with PathManager.open(splits_path, "r") as f:
annotations_json = json.load(f)
for image in annotations_json["images"]:
if image["split"] in self.splits:
data.append(
{
"image_path": image["filename"],
"sentences": [s["raw"] for s in image["sentences"]],
}
)
if len(data) == 0:
raise RuntimeError("Dataset is empty")
self.samples_factor = len(data[0]["sentences"])
self.data = data
def __len__(self):
return len(self.data)
def __getitem__(self, idx):
return self.data[idx]
class COCOAnnotationDatabase(CaptionsDatabase):
"""
Dataset for COCO Annotations with extra 30K samples for training
"""
SPLITS = {"train": ["train", "restval"], "val": ["val"], "test": ["test"]}
def _load_annotation_db(self, splits_path):
data = []
with PathManager.open(splits_path, "r") as f:
annotations_json = json.load(f)
for image in annotations_json["images"]:
if image["split"] in self.splits:
image_path = image["filename"]
# hard-fix for the extra images from val
if image["split"] == "train":
image_path = "../train2014/" + image_path
elif image["split"] == "restval":
image_path = "../val2014/" + image_path
elif image["split"] == "val":
image_path = "../val2014/" + image_path
elif image["split"] == "test":
image_path = "../val2014/" + image_path
else:
raise NotImplementedError
data.append(
{
"image_path": image_path,
# Cap for 5 captions
"sentences": [s["raw"] for s in image["sentences"][:5]],
}
)
if len(data) == 0:
raise RuntimeError("Dataset is empty")
self.samples_factor = len(data[0]["sentences"])
self.data = data
class ConceptualCaptionsDatabase(CaptionsDatabase):
"""
Dataset for conceptual caption database
"""
SPLITS = {"train": ["train"], "val": ["val"], "test": ["test"]}
def _load_annotation_db(self, splits_path):
df = pd.read_csv(
splits_path, compression="gzip", sep="\t", names=["caption", "file"]
)
self.data = df
self.samples_factor = 1
if len(self.data) == 0:
raise RuntimeError("Dataset is empty")
def __getitem__(self, idx):
df_i = self.data.iloc[idx]
data = {"sentences": [df_i["caption"]], "image_path": df_i["file"]}
return data
| 1,712 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.