/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
DeflateCompressorTest.java | 41 private final static byte[] CONTENT = new DefaultDeflateCompatibilityWindow().getCorpus(); 46 private static class Content { 56 * Uncompress some content with Java's built-in {@link Inflater} as a sanity check against our own 80 rawContentIn = new ByteArrayInputStream(CONTENT); 88 Assert.assertTrue(compressedContentOut.size() < CONTENT.length); 91 Assert.assertArrayEquals(CONTENT, uncompressed); 112 Assert.assertArrayEquals(CONTENT, uncompressedWithNowrapOn); 117 rawContentIn = new ByteArrayInputStream(CONTENT); 124 Assert.assertArrayEquals(CONTENT, uncompressedWithNowrapOff); 133 Content[] content = new Content[3] [all...] |
DeflateUncompressorTest.java | 46 private final static byte[] CONTENT = new DefaultDeflateCompatibilityWindow().getCorpus(); 58 deflateOut.write(CONTENT); 71 assertTrue(Arrays.equals(CONTENT, uncompressedContentOut.toByteArray())); 88 deflateOut.write(CONTENT); 95 // Now expect wrapped content in the uncompressor, and uncompressing should "just work". 98 assertTrue(Arrays.equals(CONTENT, uncompressedContentOut.toByteArray())); 107 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); 116 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); 150 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); 156 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
ScannerParseLargeFileBenchmarkTest.java | 43 private static final char[] CONTENT = "large file!\n".toCharArray(); 60 int contentIndex = count % CONTENT.length; 63 buffer[bufferIndex++] = CONTENT[contentIndex++]; 64 if (contentIndex == CONTENT.length) {
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
ImapStringTest.java | 129 final String CONTENT = "abc"; 130 doLiteralTest(new ImapMemoryLiteral(createFixedLengthInputStream(CONTENT)), CONTENT); 135 final String CONTENT = "def"; 136 ImapTempFileLiteral l = new ImapTempFileLiteral(createFixedLengthInputStream(CONTENT)); 137 doLiteralTest(l, CONTENT); 145 private static void doLiteralTest(ImapString s, String content) throws IOException { 146 assertEquals(content, s.getString()); 147 assertEquals(content, Utility.fromAscii(IOUtils.toByteArray(s.getAsStream())));
|
/external/ltp/testcases/kernel/fs/acl/ |
tacl_xattr.sh | 41 CONTENT="" 580 CONTENT="" 581 CONTENT=`ls -l tacl/mount-ext2/shared/team1/newfile1` 582 RES=`echo $CONTENT | grep ".r--r--r--" | awk '{print $1}'` 608 CONTENT="" 609 CONTENT=`ls -l tacl/mount-ext2/shared/team1/newfile2` 610 RES=`echo $CONTENT | grep ".r--rw-r--" | awk '{print $1}'` 635 CONTENT="" 636 CONTENT=`ls -l tacl/mount-ext2/shared/team1/newfile3` 637 RES=`echo $CONTENT | grep ".rw-rw-rw-" | awk '{print \$1}' [all...] |
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
RSSPullParser.java | 24 import android.content.ContentValues; 39 // An attribute value indicating that the element contains media content 40 private static final String CONTENT = "media:content"; 147 // If it's CONTENT 148 if (eventName.equalsIgnoreCase(CONTENT)) {
|
/external/emma/core/java12/com/vladium/emma/report/html/doc/ |
Attribute.java | 28 public static final Attribute CONTENT = new AttributeImpl ("CONTENT");
|
HTMLDocument.java | 41 .set (Attribute.HTTP_EQUIV, "Content-Type") 42 .set (Attribute.CONTENT, "text/html; charset=" + encoding); 109 public IElementList add (final IContent content) 111 m_body.add (content);
|
/frameworks/base/drm/java/android/drm/ |
DrmStore.java | 29 * on right-protected content. The constants defined in this interface 59 * the rights-protected content. 68 * the rights-protected content. 102 public static final int CONTENT = 0x01; 120 * Defines playback states for content. 161 * Defines actions that can be performed on rights-protected content. 169 * The rights-protected content can be played. 173 * The rights-protected content can be set as a ringtone. 177 * The rights-protected content can be transferred. 181 * The rights-protected content can be set as output [all...] |
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
MyRssReader4.java | 20 import android.content.ContentValues; 21 import android.content.Context; 22 import android.content.Intent; 130 // Create our content URI by adding the ID of the currently selected item using a 155 vals.put(RssContentProvider.CONTENT, data.getStringExtra(RssContentProvider.CONTENT));
|
RssContentProvider.java | 19 import android.content.ContentProvider; 20 import android.content.ContentProviderDatabaseHelper; 21 import android.content.UriMatcher; 22 import android.content.Context; 28 import android.content.ContentValues; 33 // Content Provider for RSS feed information. Each row describes a single 56 public static final Uri CONTENT_URI = Uri.parse( "content://my_rss_item/rssitem"); 63 public static final String CONTENT = "rawcontent"; 79 CONTENT + " TEXT," +
|
AddRssItem.java | 20 import android.content.Intent; 51 res.putExtra(RssContentProvider.CONTENT, "<html><body><h2>Not updated yet.</h2></body></html>");
|
MyRssReader5.java | 20 import android.content.ContentValues; 21 import android.content.Context; 22 import android.content.Intent; 87 String content = ""; local 89 content = mCur.getString(mCur.getColumnIndex(RssContentProvider.CONTENT)); 90 mLogger.info("MyRssReader5 content string:" + content); 95 mLogger.warning("MyRssReader5.onItemSelected() couldn't get the content" + 98 mWebView.loadData(content, "text/html", null) [all...] |
RssService.java | 22 import android.content.Intent; 23 import android.content.SharedPreferences; 29 import android.content.ContentResolver; 50 private Cursor mCur; // RSS content provider cursor. 173 // items), then update the content, date, and hasBeenRead fields. 183 int contentColumnIndex = mCur.getColumnIndex(RssContentProvider.CONTENT); 200 // Get the <pubDate> content from a feed and return a
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
FileChannelLockingTest.java | 44 private final String CONTENT = "The best things in life are nearest: Breath in your nostrils, light in your eyes, " 52 // Create a three temporary files with content. 58 writer.write(CONTENT);
|
FileChannelTest.java | 59 private static final String CONTENT = "MYTESTSTRING needs to be a little long"; 70 CONTENT_AS_BYTES = CONTENT.getBytes("iso8859-1"); 77 private static final int CONTENT_LENGTH = CONTENT.length(); 111 // to read content from FileChannel 260 * @param size the content size to be written 270 // we don't care about content - just need a particular file size 393 // reads the content left to readBuffer through read only file channel 398 // asserts the content read is the part which stays beyond the POSITION 430 // constructs the expected result which has content[0... POSITION] plus 431 // content[0...length() [all...] |
/frameworks/av/include/drm/ |
drm_framework_common.h | 110 * Field specifies the protected content type 112 static const int CONTENT = 0x01; 150 * Defines actions that can be performed on protected content 162 * Constant field signifies that the content can be played 166 * Constant field signifies that the content can be set as ring tone 170 * Constant field signifies that the content can be transfered 174 * Constant field signifies that the content can be set as output 182 * Constant field signifies that the content can be executed 186 * Constant field signifies that the content can displayed 208 * Constant field signifies that the rights are expired for the content [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreUiTest.java | 20 import android.content.ContentResolver; 21 import android.content.Context; 22 import android.content.Intent; 23 import android.content.UriPermission; 24 import android.content.pm.PackageManager; 25 import android.content.pm.ResolveInfo; 42 import android.support.v4.content.FileProvider; 61 private static final String CONTENT = "Test"; 111 assertEquals(CONTENT, reader.readLine()); 116 out.write(CONTENT.getBytes()) [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
LinkMovementMethodTest.java | 68 private static final String CONTENT = "clickable\nunclickable\nclickable"; 85 // Set the content view with a text view which contains 3 lines, 88 mView.setText(CONTENT, BufferType.SPANNABLE); 95 mClickable0 = markClickable(0, CONTENT.indexOf('\n')); 97 mClickable1 = markClickable(CONTENT.lastIndexOf('\n'), CONTENT.length());
|
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/lexer/ |
Lexer.java | 12 protected State state = State.CONTENT; 169 case 0: state = State.CONTENT; break; [all...] |
/build/make/tools/droiddoc/templates-pdk/ |
docpage.cs | 8 <div class="g-unit" id="doc-content"><a name="top"></a> 20 <?cs # THIS IS THE MAIN DOC CONTENT ?> 21 <div id="jd-content"> 97 </div> <!-- end jd-content --> 100 </div><!-- end doc-content -->
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
OldFileChannelTest.java | 43 private static final String CONTENT = "MYTESTSTRING needs to be a little long"; 55 private static final int CONTENT_LENGTH = CONTENT.length(); 57 private static final byte[] CONTENT_AS_BYTES = CONTENT.getBytes(); 73 // to read content from FileChannel 190 * @param size the content size to be written 200 // we don't care about content - just need a particular file size 778 String test = CONTENT.substring(pos); [all...] |
/build/make/tools/droiddoc/templates-sac/ |
sdkpage.cs | 7 <meta http-equiv="refresh" content="0;url=<?cs var:toroot ?>sdk/<?cs 30 <div id="jd-content"> 51 <div id="jd-content" itemprop="description"> 114 <?cs ######## HERE IS THE JD DOC CONTENT ######### ?> 186 <?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?> 309 </div><!-- end col-13 for lower-half content --> 459 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?> 477 </div><!-- end jd-content -->
|
/build/make/tools/droiddoc/templates-ndk/ |
sample.cs | 44 <?cs # THIS IS THE MAIN DOC CONTENT ?> 45 <div id="jd-content"> 93 <div class="content-footer <?cs 95 else ?>layout-content-row<?cs /if ?>" 97 <div class="layout-content-col <?cs 106 <div class="paging-links layout-content-col col-4"> 131 <div class="layout-content-row content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement"> 136 </div> <!-- end jd-content --> 139 </div><!-- end doc-content -- [all...] |
/external/doclava/res/assets/templates-sdk/ |
sample.cs | 39 <?cs # THIS IS THE MAIN DOC CONTENT ?> 40 <div id="jd-content"> 88 <div class="content-footer <?cs 126 <div class="content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement"> 131 </div> <!-- end jd-content -->
|