/development/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
ItemTouchHelperActivity.java | 5 * you may not use this file except in compliance with the License. 64 mRecyclerView.setLayoutManager(new LinearLayoutManager(this)); 91 configView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, 108 return ItemTouchHelperActivity.this.getMovementFlags(recyclerView, viewHolder); 126 ItemTouchHelperActivity.this.onSelectedChanged(viewHolder, actionState); 133 if (ItemTouchHelperActivity.this.onChildDraw(c, recyclerView, viewHolder, 145 if (ItemTouchHelperActivity.this.onChildDrawOver(c, recyclerView, viewHolder, 155 return ItemTouchHelperActivity.this.isLongPressDragEnabled(); 160 return ItemTouchHelperActivity.this.isPointerSwipeEnabled(); 166 ItemTouchHelperActivity.this.clearView(viewHolder) [all...] |
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/ |
GameActivity.java | 5 * you may not use this file except in compliance with the License.
56 * IMPORTANT: all resource IDs from this library will eventually be merged
135 GameActivity.this.finish();
152 // Pick a non-used cell at random. That's about all the AI you need for this game.
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
DeviceListFragment.java | 5 * you may not use this file except in compliance with the License. 53 this.setListAdapter(new WiFiPeerListAdapter(getActivity(), R.layout.row_devices, peers)); 64 * @return this device 143 * Update UI for this device. 148 this.device = device;
|
/development/samples/browseable/MediaRecorder/src/com.example.android.mediarecorder/ |
MainActivity.java | 5 * you may not use this file except in compliance with the License. 39 * This activity uses the camera/camcorder as the A/V source for the {@link android.media.MediaRecorder} API. 40 * A {@link android.view.TextureView} is used as the camera preview which limits the code to API 14+. This 222 MainActivity.this.finish();
|
/development/samples/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/ |
ActivityA.java | 5 * you may not use this file except in compliance with the License. 91 Intent intent = new Intent(ActivityA.this, DialogActivity.class); 96 Intent intent = new Intent(ActivityA.this, ActivityB.class); 101 Intent intent = new Intent(ActivityA.this, ActivityC.class); 106 ActivityA.this.finish();
|
/development/samples/training/network-usage/src/com/example/android/networkusage/ |
NetworkActivity.java | 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 52 * This activity does the following: 54 * o Presents a WebView screen to users. This WebView has a list of HTML links to the latest 90 this.registerReceiver(receiver, filter); 100 SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); 111 // you don't want to refresh the display--this would force the display of 122 this.unregisterReceiver(receiver); 143 // This avoids UI lock up. To prevent network operations from 226 SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); 247 // This section processes the entries list to combine each entry with HTML markup [all...] |
/external/antlr/antlr-3.4/antlr3-maven-plugin/src/main/java/org/antlr/mojo/antlr3/ |
Antlr3Mojo.java | 13 notice, this list of conditions and the following disclaimer. 15 notice, this list of conditions and the following disclaimer in the 18 derived from this software without specific prior written permission. 20 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 29 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 * This is the definitive ANTLR3 Mojo set. All other sets are belong to us. 92 * be set to debug mode. This means that when run, the code will 'hang' and 127 * If this parameter is set, it indicates that any warning or error messages returned 135 * If this parameter is set to true, then ANTLR will report all sorts of things 168 * this version of the plugin looks for the directory antlr3 and not the director [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
Lexer.java | 10 notice, this list of conditions and the following disclaimer. 12 notice, this list of conditions and the following disclaimer in the 15 derived from this software without specific prior written permission. 17 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 26 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * lexer grammars result in a subclass of this object. A Lexer object 43 this.input = input; 48 this.input = input; 69 /** Return a token from this source; i.e., match a token on the char 123 /** This is the lexer entry point that sets instance var 'token' * [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/ |
MultistepIntegrator.java | 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 32 * This class is the base class for multistep integrators for Ordinary 42 * <p>Rather than storing several previous steps separately, this implementation uses 103 * integration), the last step can be smaller than this 126 this.nSteps = nSteps; 150 * integration), the last step can be smaller than this 165 this.nSteps = nSteps; 186 * <p>The various step and event handlers for this starter integrato [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KeyFactory2Test.java | 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 51 this.sleepTime = sleepTime; 52 this.iterations = iterations; 56 synchronized (this) { 57 this.notify();
|
/external/apache-http/src/org/apache/http/impl/cookie/ |
BasicClientCookie.java | 9 * distributed with this work for additional information 10 * regarding copyright ownership. The ASF licenses this file 12 * "License"); you may not use this file except in compliance 25 * This software consists of voluntary contributions made by many 61 * Please visit <a href="http://android-developers.blogspot.com/2011/09/androids-http-clients.html">this webpage</a> 78 this.name = name; 79 this.attribs = new HashMap<String, String>(); 80 this.value = value; 89 return this.name; 98 return this.value [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/processor/ |
ProcessorInclude.java | 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 7 * you may not use this file except in compliance with the License. 63 * Get the base identifier with which this stylesheet is associated. 74 * Get the base identifier with which this stylesheet is associated. 95 * Get the error number associated with this type of stylesheet including itself 129 setPropertiesFromAttributes(handler, rawName, attributes, this); 153 handler.setStylesheetType(this.getStylesheetType()); 175 * Set off a new parse for an included or imported stylesheet. This will 177 * a new set of parse events. Once this function returns, the state of [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
ElemExtensionCall.java | 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 7 * you may not use this file except in compliance with the License. 42 /** The Namespace URI for this extension call element. 66 *@return The token ID for this element 86 * This function is called after everything else has been 94 m_extns = this.getNamespace(); 103 * Return the ElemExtensionDecl for this extension element 106 * @param stylesheet Stylesheet root associated with this extension element 107 * @param namespace Namespace associated with this extension elemen [all...] |
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
ToTextStream.java | 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 7 * you may not use this file except in compliance with the License. 31 * This class is not a public API. 33 * This class converts SAX or SAX-like calls to a 54 * <p>The SAX parser will invoke this method only once, before any 55 * other methods in this interface or in DTDHandler (except for 75 * <p>The SAX parser will invoke this method only once, and it will 77 * not invoke this method until it has either abandoned parsing 97 * <p>The Parser will invoke this method at the beginning of ever [all...] |
WriterToUTF8Buffered.java | 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 7 * you may not use this file except in compliance with the License. 30 * This class writes unicode characters to a byte stream (java.io.OutputStream) 32 * buffer which must be flushed to the OutputStream when done. This flushing 35 * This class is only used internally within Xalan. 43 * This is a fixed constant is used rather than m_outputBytes.lenght for performance. 47 * This is 1/3 of the number of bytes because UTF-8 encoding 66 * The number of valid bytes in the buffer. This value is always 93 // the old body of this constructor, before the buffersize was changed to a constant [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
ASN1Set.java | 11 * Note: This does not know which syntax the set is! 148 * set - so we need to add it back (this will happen if the tagged 151 * be using this method. 199 // in this case the parser returns a sequence, convert it 251 this.sort(); 269 this.sort(); 291 * return the number of objects in this set. 293 * @return the number of objects in this set. 302 ASN1Encodable[] values = new ASN1Encodable[this.size()]; 304 for (int i = 0; i != this.size(); i++ [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
BCECPrivateKey.java | 62 this.d = key.getS(); 63 this.algorithm = key.getAlgorithm(); 64 this.ecSpec = key.getParams(); 65 this.configuration = configuration; 73 this.algorithm = algorithm; 74 this.d = spec.getD(); 83 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); 87 this.ecSpec = null; 90 this.configuration = configuration; 99 this.algorithm = algorithm [all...] |
BCECPublicKey.java | 56 this.algorithm = algorithm; 57 this.q = key.q; 58 this.ecSpec = key.ecSpec; 59 this.withCompression = key.withCompression; 60 this.configuration = key.configuration; 68 this.algorithm = algorithm; 69 this.ecSpec = spec.getParams(); 70 this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false); 71 this.configuration = configuration; 79 this.algorithm = algorithm [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
JCEECPrivateKey.java | 62 this.d = key.getS(); 63 this.algorithm = key.getAlgorithm(); 64 this.ecSpec = key.getParams(); 71 this.algorithm = algorithm; 72 this.d = spec.getD(); 81 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); 85 this.ecSpec = null; 94 this.algorithm = algorithm; 95 this.d = spec.getS(); 96 this.ecSpec = spec.getParams() [all...] |
JCEECPublicKey.java | 65 this.algorithm = algorithm; 66 this.q = key.q; 67 this.ecSpec = key.ecSpec; 68 this.withCompression = key.withCompression; 70 // this.gostParams = key.gostParams; 78 this.algorithm = algorithm; 79 this.ecSpec = spec.getParams(); 80 this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false); 87 this.algorithm = algorithm; 88 this.q = spec.getQ() [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
X509V2AttributeCertificate.java | 67 this(getObject(encIn)); 74 this(new ByteArrayInputStream(encoded)); 81 this.cert = cert; 85 this.notAfter = cert.getAcinfo().getAttrCertValidityPeriod().getNotAfterTime().getDate(); 86 this.notBefore = cert.getAcinfo().getAttrCertValidityPeriod().getNotBeforeTime().getDate(); 147 this.checkValidity(new Date()); 154 if (date.after(this.getNotAfter())) 156 throw new CertificateExpiredException("certificate expired on " + this.getNotAfter()); 159 if (date.before(this.getNotBefore())) 161 throw new CertificateNotYetValidException("certificate not valid till " + this.getNotBefore()) [all...] |
X509V3CertificateGenerator.java | 161 * Set the signature algorithm. This can be either a name or an OID, names 169 this.signatureAlgorithm = signatureAlgorithm; 186 * Set the subject unique ID - note: it is very rare that it is correct to do this. 194 * Set the issuer unique ID - note: it is very rare that it is correct to do this. 230 this.addExtension(new ASN1ObjectIdentifier(oid), critical, value); 254 this.addExtension(new ASN1ObjectIdentifier(oid), critical, value); 290 this.addExtension(oid, critical, value); 309 this.copyAndAddExtension(oid.getId(), critical, cert); 403 * <b>Note:</b> this differs from the deprecated method in that the default provider is 419 * <b>Note:</b> this differs from the deprecated method in that the default provider i [all...] |
/external/easymock/src/org/easymock/ |
MockControl.java | 5 * you may not use this file except in compliance with the License.
43 this.ctrl = ctrl;
44 this.mock = ctrl.createMock(toMock);
98 * @return the mock object of this control
448 * @param matcher the default matcher for this control
472 this.expectAndReturn((Object) ignored, (Object) value);
495 this.expectAndReturn((Object) ignored, (Object) value, range);
516 this.expectAndReturn((Object) ignored, (Object) value, count);
538 this.expectAndReturn((Object) ignored, (Object) value, min, max);
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/ |
BuildMachineManager.java | 3 * All rights reserved. This program and the accompanying materials 5 * which accompanies this distribution, and is available at 14 * To change this generated comment go to 31 * This class finds an available build machine by reading a registry of build 63 this.waitInterval = waitInterval; 64 this.cfg = cfg; 65 this.markerContainer = markerContainer; 66 this.markerName = markerName; 67 this.markerKey = markerKey; 68 this.cfgKey = cfgKey [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
RawDataTable.java | 3 * All rights reserved. This program and the accompanying materials 5 * which accompanies this distribution, and is available at 37 this.configResults = results; 38 this.stream = ps; 42 this(results, ps); 43 this.buildPrefixes = prefixes; 46 this(results, ps); 47 this.buildPrefixes = new ArrayList(); 48 this.buildPrefixes.add(baselinePrefix); 55 this.stream.print("<table border=\"1\">") [all...] |