Home
last modified time | relevance | path

Searched refs:constructor (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestMethod.java84 for (Constructor constructor : constructors) { in instantiateTest()
85 Class[] params = constructor.getParameterTypes(); in instantiateTest()
87 TestCase test = ((Constructor<? extends TestCase>) constructor).newInstance(); in instantiateTest()
93 return ((Constructor<? extends TestCase>) constructor) in instantiateTest()
DTestGrouping.java230 for (Constructor<? extends TestCase> constructor : constructors) { in hasValidConstructor()
231 if (Modifier.isPublic(constructor.getModifiers())) { in hasValidConstructor()
232 java.lang.Class[] parameterTypes = constructor.getParameterTypes(); in hasValidConstructor()
/frameworks/base/core/java/android/preference/
DGenericInflater.java369 Constructor constructor = (Constructor) sConstructorMap.get(name); in createItem() local
372 if (null == constructor) { in createItem()
377 constructor = clazz.getConstructor(mConstructorSignature); in createItem()
378 sConstructorMap.put(name, constructor); in createItem()
383 return (T) constructor.newInstance(args); in createItem()
400 + constructor.getClass().getName()); in createItem()
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/constructor/
DPublicConstructorTest.java17 package android.test.suitebuilder.examples.constructor;
DProtectedConstructorTest.java17 package android.test.suitebuilder.examples.constructor;
DNoPublicConstructorTest.java17 package android.test.suitebuilder.examples.constructor;
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVCardVerifier.java241 final VCardEntryConstructor constructor = new VCardEntryConstructor(mVCardType); in verifyWithInputStream() local
242 constructor.addEntryHandler(mContentValuesVerifier); in verifyWithInputStream()
243 parser.addInterpreter(constructor); in verifyWithInputStream()
/frameworks/base/core/java/android/view/
DLayoutInflater.java546 Constructor<? extends View> constructor = sConstructorMap.get(name); in createView() local
550 if (constructor == null) { in createView()
561 constructor = clazz.getConstructor(mConstructorSignature); in createView()
562 sConstructorMap.put(name, constructor); in createView()
587 final View view = constructor.newInstance(args); in createView()
DMenuInflater.java470 Constructor<?> constructor = clazz.getConstructor(constructorSignature); in newInstance() local
471 return (T) constructor.newInstance(arguments); in newInstance()
/frameworks/base/media/mca/filterfw/jni/
Djni_util.h167 jmethodID constructor = env->GetMethodID( in CreateJavaObject() local
171 jobject result = env->NewObject(cls, constructor, JNI_NULL); in CreateJavaObject()
/frameworks/base/test-runner/src/android/test/
DAndroidTestRunner.java110 Constructor constructor, Object... args) { in newSingleTestMethod() argument
112 TestCase testCase = (TestCase) constructor.newInstance(args); in newSingleTestMethod()
/frameworks/base/docs/html/guide/topics/ui/
Dcustom-components.jd131 You can supply a constructor which can
221 <td>There is a form of the constructor that are called when the view
328 <li>Parameterized constructor that takes the view inflation parameters
380 In the constructor for the new class, take whatever parameters the
381 superclass expects, and pass them through to the superclass constructor
386 constructor.
493 this is not a default constructor, but a parameterized one. The
495 XML layout file, thus, our constructor needs to both take them and pass them
496 to the superclass constructor as well.</p>
547 passed into the custom component constructor, and then passed
[all …]
Ddrag-drop.jd483 This constructor accepts any of your application's
484 {@link android.view.View} objects. The constructor stores the View object
490 If you use this constructor, you don't have to extend
498 If you use this constructor, no View object is available in the
500 If you use this constructor, and you don't extend
634 // Defines the constructor for myDragShadowBuilder
682 {@link android.view.View.DragShadowBuilder}. The constructor
/frameworks/base/docs/html/tools/testing/
Dcontentprovider_testing.jd123 The initialization is done in the constructor for {@link android.test.ProviderTestCase2}, which
125 constructor creates an {@link android.test.IsolatedContext} object that allows file and
131 The constructor then creates a {@link android.test.mock.MockContentResolver} to use as the
138 Lastly, the constructor creates an instance of the provider under test. This is a normal
Dtesting_eclipse.jd189 click <strong>Finish</strong>. You will set up the constructor manually.
196 You now have to ensure that the constructor is set up correctly. Create a constructor for your
198 constructor, add a call to the base class' constructor. Each base test case class has its
199 own constructor signature. Refer to the class documentation in the documentation for
Dactivity_test.jd28 <a href="#AddConstructor">Adding the test case constructor</a>
449 <h3 id="AddConstructor">Adding the test case constructor</h3>
451 …To ensure that the test application is instantiated correctly, you must set up a constructor that …
452 …runner will call when it instantiates your test class. This constructor has no parameters, and its…
453 …rpose is to pass information to the superclass's default constructor. To set up this constructor, …
459 } // end of SpinnerActivityTest constructor definition
462 …This calls the superclass constructor with the Android package name (<code>com.android.example.spi…
478 …<code>super.setUp()</code>. Invokes the superclass constructor for <code>setUp()</code>, which is …
504 …Add this code to the definition of <code>SpinnerActivityTest</code>, after the constructor definit…
1182 …utorial, starting at the section <a href="#AddConstructor">Adding the test case constructor</a> and
/frameworks/wilhelm/src/objects/
DCEngine.c32 __attribute__((constructor)) static void onDlOpen(void) in onDlOpen()
/frameworks/base/core/tests/coretests/src/android/content/
DContentProviderOperationTest.java380 final Constructor constructor = CLASS_OPERATION.getDeclaredConstructor(CLASS_BUILDER); in newOperationFromBuilder() local
381 constructor.setAccessible(true); in newOperationFromBuilder()
382 return (ContentProviderOperation) constructor.newInstance(builder); in newOperationFromBuilder()
/frameworks/base/docs/html/training/custom-views/
Dcreate-view.jd65 </a> to interact with your view, at a minimum you must provide a constructor that takes a
67 This constructor allows the layout editor to create and edit an instance of your view.</p>
164 bundle and passed into the view's constructor as an {@link android.util.AttributeSet}.
/frameworks/base/docs/html/training/cloudsync/
Dbackupapi.jd116 constructor can take a variable number of filenames. You could just as easily
129 to the constructor, add the names of the shared preference groups being used by
/frameworks/base/docs/html/guide/topics/renderscript/
Dadvanced.jd337 <code>ScriptField_<em>struct_name</em>(RenderScript rs, int count)</code> constructor allows
340 count, int usages)</code> constructor defines an extra parameter, <code>usages</code>, that
481 constructor that is declared in one of the reflected layer classes and then bind
585 <p>To allocate dynamic memory, you need to call the constructor of a
588 …use a {@link android.renderscript.Script.FieldBase} class constructor whenever available for simpl…
603 //allocate memory for the struct pointer, calling the constructor
/frameworks/compile/mclinker/unittests/
DHashTableTest.cpp97 TEST_F( HashTableTest, constructor ) { in TEST_F() argument
/frameworks/base/docs/html/guide/topics/search/
Dadding-recent-query-suggestions.jd107 for you. All you have to do is write a class constructor that executes one line of code.</p>
207 <p>The {@link android.content.SearchRecentSuggestionsProvider} constructor requires the
/frameworks/base/docs/html/guide/topics/ui/controls/
Dpickers.jd111 <p>See the {@link android.app.TimePickerDialog} class for information about the constructor
216 <p>See the {@link android.app.DatePickerDialog} class for information about the constructor
/frameworks/base/docs/html/about/versions/
Dandroid-1.1.jd204 <li>API cleanup: removes protected constructor from
238 …<tr><td>Removed protected constructor java.net.ServerSocket.ServerSocket(java.net.SocketImpl).</td…

123