HomeSort by relevance Sort by last modified time
    Searched refs:cls (Results 26 - 50 of 2500) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/mockito/src/main/java/org/mockito/internal/creation/instance/
ConstructorInstantiator.java 20 public <T> T newInstance(Class<T> cls) {
22 return noArgConstructor(cls);
24 return withParams(cls, outerClassInstance);
27 private static <T> T withParams(Class<T> cls, Object... params) {
31 for (Constructor<?> constructor : cls.getDeclaredConstructors()) {
38 throw paramsException(cls, e);
40 throw noMatchingConstructor(cls);
50 private static <T> InstantiationException paramsException(Class<T> cls, Exception cause) {
52 join("Unable to create instance of '" + cls.getSimpleName() + "'.",
57 private static <T> InstantiationException noMatchingConstructor(Class<T> cls) {
    [all...]
Instantiator.java 15 <T> T newInstance(Class<T> cls) throws InstantiationException;
ObjenesisInstantiator.java 17 public <T> T newInstance(Class<T> cls) {
18 return objenesis.newInstance(cls);
  /art/test/117-nopatchoat/
nopatchoat.cc 31 static const OatFile::OatDexFile* getOatDexFile(jclass cls) {
33 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls);
44 static bool hasExecutableOat(jclass cls) {
45 const OatFile::OatDexFile* oat_dex_file = getOatDexFile(cls);
50 static bool needsRelocation(jclass cls) {
51 const OatFile::OatDexFile* oat_dex_file = getOatDexFile(cls);
67 extern "C" JNIEXPORT jboolean JNICALL Java_Main_hasExecutableOat(JNIEnv*, jclass cls) {
68 return NoPatchoatTest::hasExecutableOat(cls);
71 extern "C" JNIEXPORT jboolean JNICALL Java_Main_needsRelocation(JNIEnv*, jclass cls) {
72 return NoPatchoatTest::needsRelocation(cls);
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/resourceloader/
ClassResourceLoader.java 53 private final Class<?> cls; field in class:ClassResourceLoader
56 public ClassResourceLoader(Class<?> cls) {
57 this.cls = cls;
58 this.basePath = "/" + cls.getPackage().getName().replace('.', '/');
63 * relative to the .class file of {@code cls}.
65 public ClassResourceLoader(Class<?> cls, String basePath) {
66 this.cls = cls;
72 InputStream stream = cls.getResourceAsStream(basePath + '/' + name)
    [all...]
  /art/test/566-polymorphic-inlining/
polymorphic_inline.cc 28 static void do_checks(jclass cls, const char* method_name) {
30 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls);
55 static void allocate_profiling_info(jclass cls, const char* method_name) {
57 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls);
62 extern "C" JNIEXPORT void JNICALL Java_Main_ensureProfilingInfo566(JNIEnv*, jclass cls) {
68 allocate_profiling_info(cls, "testInvokeVirtual");
69 allocate_profiling_info(cls, "testInvokeInterface");
70 allocate_profiling_info(cls, "$noinline$testInlineToSameTarget");
73 extern "C" JNIEXPORT void JNICALL Java_Main_ensureJittedAndPolymorphicInline566(JNIEnv*, jclass cls) {
84 do_checks(cls, "testInvokeVirtual")
    [all...]
  /device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/
MultipleWorkspace.py 37 # @param cls The class pointer
42 def convertPackagePath(cls, Ws, Path):
51 # @param cls The class pointer
56 def setWs(cls, Ws, PackagesPath=None):
57 cls.WORKSPACE = Ws
59 cls.PACKAGES_PATH = [cls.convertPackagePath (Ws, os.path.normpath(Path.strip())) for Path in PackagesPath.split(os.pathsep)]
61 cls.PACKAGES_PATH = []
67 # @param cls The class pointer
73 def join(cls, Ws, *p):
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
LeakCheckedTest.java 83 public void injectLeakCheckedDependencies(Class<?>... cls) {
84 for (Class<?> c : cls) {
101 public <T> T getLeakChecker(Class<T> cls) {
102 Object obj = mLeakCheckers.get(cls);
105 if (cls == BluetoothController.class) {
107 } else if (cls == LocationController.class) {
109 } else if (cls == RotationLockController.class) {
111 } else if (cls == ZenModeController.class) {
113 } else if (cls == CastController.class) {
115 } else if (cls == HotspotController.class)
    [all...]
  /external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
meta_class.py 11 def __new__(cls, name, bases, attrs):
16 return super(TracedMetaClass, cls).__new__(cls, name, bases, attrs)
  /frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
PluginDependency.java 24 public static <T> T get(Plugin p, Class<T> cls) {
25 return sProvider.get(p, cls);
29 abstract <T> T get(Plugin p, Class<T> cls);
  /external/emma/core/java12/com/vladium/jcd/cls/
IClassDefConstants.java 9 package com.vladium.jcd.cls;
  /external/emma/core/java12/com/vladium/jcd/cls/attribute/
AttributeElementFactory.java 9 package com.vladium.jcd.cls.attribute;
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
ClassPresenterSelector.java 31 * @param cls The data model class to be rendered.
35 public ClassPresenterSelector addClassPresenter(Class<?> cls, Presenter presenter) {
36 mClassMap.put(cls, presenter);
45 * @param cls The data model class to be rendered.
50 public ClassPresenterSelector addClassPresenterSelector(Class<?> cls,
52 mClassMap.put(cls, presenterSelector);
63 Class<?> cls = item.getClass(); local
67 presenter = mClassMap.get(cls);
74 cls = cls.getSuperclass()
    [all...]
  /external/autotest/client/cros/cellular/mbim_compliance/
mbim_message.py 63 def message_class_new(cls, **kwargs):
82 data_format = cls.get_field_format_string(get_all=True)
83 unpack_length = cls.get_struct_len(get_all=True)
91 obj = super(cls, cls).__new__(cls, *struct.unpack_from(data_format,
103 fields = cls.get_fields(get_all=True)
104 defaults = cls.get_defaults(get_all=True)
108 field_value = cls.get_struct_len(get_all=True)
112 field_value = cls.get_next_transaction_id(
    [all...]
  /external/autotest/client/common_lib/
android_utils.py 79 def get_product_aliases(cls, product):
90 aliases = set(cls.aliases_map.get(product, []))
91 aliases.add(cls.get_board_name(product))
97 def get_board_name(cls, product):
107 boards = cls.board_name_map.get(product, None)
160 def get_standalone_images(cls, board):
167 if board in cls.standalone_images_map:
169 '%s: %s', board, cls.standalone_images_map[board])
170 return cls.standalone_images_map[board]
172 return cls.DEFAULT_STANDALONE_IMAGE
    [all...]
  /external/trappy/tests/
test_dynamic.py 54 cls = trappy.register_dynamic_ftrace("DynamicEvent", "dynamic_test_key",
56 self.assertEquals(cls.__name__, "DynamicEvent")
57 self.assertEquals(cls.name, "dynamic_event")
58 self.assertEquals(cls.unique_word, "dynamic_test_key")
59 self.assertEquals(cls.pivot, "test_pivot")
61 trappy.unregister_dynamic_ftrace(cls)
67 cls = trappy.register_dynamic_ftrace("DynamicEvent", "dynamic_test_key")
69 l = trappy.LinePlot(t, cls, column="load")
72 trappy.unregister_dynamic_ftrace(cls)
79 cls = trappy.register_dynamic_ftrace("DynamicEvent", "dynamic_test_key"
    [all...]
  /external/autotest/server/
system_utils.py 57 def refresh(cls, restricted_subnets=utils.RESTRICTED_SUBNETS):
71 cls.drone_ip_map = new_drone_ip_map
72 cls.unrestricted_drones = new_unrestricted_drones
77 cls, restricted_subnets=utils.RESTRICTED_SUBNETS):
83 if not cls.unrestricted_drones:
84 cls.refresh(restricted_subnets)
86 return copy.copy(cls.unrestricted_drones)
90 def get_drone_ip_map(cls, restricted_subnets=utils.RESTRICTED_SUBNETS):
96 if not cls.drone_ip_map:
97 cls.refresh(restricted_subnets
    [all...]
  /external/python/cpython2/Lib/idlelib/idle_test/
test_helpabout.py 26 def setUpClass(cls):
27 cls.orig_mbox = textview.tkMessageBox
28 cls.orig_view = textview.view_text
29 cls.mbox = Mbox()
30 cls.view = Func()
31 textview.tkMessageBox = cls.mbox
32 textview.view_text = cls.view
33 cls.About = Dummy_about_dialog()
36 def tearDownClass(cls):
37 textview.tkMessageBox = cls.orig_mbo
    [all...]
test_editmenu.py 18 def setUpClass(cls):
20 cls.root = root = tk.Tk()
23 cls.text = tk.Text(root)
24 cls.entry = tk.Entry(root)
25 cls.spin = tk.Spinbox(root)
30 def tearDownClass(cls):
31 del cls.text, cls.entry, cls.spin
32 cls.root.clipboard_clear(
    [all...]
  /development/samples/SampleSyncAdapter/samplesyncadapter_server/model/
datastore.py 38 def get_contact_info(cls, username):
40 query = cls.gql('WHERE handle = :1', username)
45 def get_contact_last_updated(cls, username):
47 query = cls.gql('WHERE handle = :1', username)
52 def get_contact_id(cls, username):
54 query = cls.gql('WHERE handle = :1', username)
59 def get_contact_status(cls, username):
61 query = cls.gql('WHERE handle = :1', username)
  /external/parameter-framework/upstream/tools/clientSimulator/clientsimulator/criterion/
Criterion.py 35 def allowedValues(cls):
46 return cls._allowedValues
  /external/testng/src/main/java/org/testng/internal/
InstanceInfo.java 9 public InstanceInfo(Class cls, Object instance) {
10 m_instanceClass = cls;
  /external/testng/src/test/java/test/objectfactory/
ClassObjectFactory.java 10 public Object newInstance(Class<?> cls) {
12 Constructor ctor = cls.getConstructors()[0];
  /packages/apps/Messaging/tests/src/com/android/messaging/ui/
ActivityInstrumentationTestCaseIntent.java 28 public ActivityInstrumentationTestCaseIntent(Context packageContext, Class<?> cls) {
29 super(packageContext, cls);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/support/
P.java 33 private String findProp(Class cls, String key) {
36 ResourceBundle b = ResourceBundle.getBundle(cls.getName());
40 if (ret == null && !cls.equals(Object.class) && !cls.isPrimitive()) {
41 ret = findProp(cls.getSuperclass(), key);

Completed in 391 milliseconds

12 3 4 5 6 7 8 91011>>