/frameworks/base/core/java/android/gesture/ |
H A D | Learner.java | 28 * Add an instance to the learner 30 * @param instance 32 void addInstance(Instance instance) { argument 33 mInstances.add(instance); 46 * Remove an instance based on its id 54 Instance instance = instances.get(i); 55 if (id == instance.id) { 56 instances.remove(instance); 73 final Instance instance = instances.get(i); 75 if ((instance [all...] |
H A D | Instance.java | 21 * An instance represents a sample if the label is available or a query if the 41 // the id of the instance 66 * create a learning instance for a single stroke gesture 70 * @return the instance 74 Instance instance; 77 instance = new Instance(gesture.getID(), pts, label); 78 instance.normalize(); 81 instance = new Instance(gesture.getID(), pts, label); 83 return instance;
|
/frameworks/wilhelm/src/ |
H A D | sync.c | 64 IObject *instance = (IObject *) thiz->mEngine.mInstances[i]; local 66 if (NULL == instance) { 70 object_lock_exclusive(instance); 71 unsigned attributesMask = instance->mAttributesMask; 72 instance->mAttributesMask = 0; 74 switch (IObjectToObjectID(instance)) { 77 object_unlock_exclusive(instance); 80 CAudioPlayer *audioPlayer = (CAudioPlayer *) instance; 87 object_unlock_exclusive(instance);
|
/frameworks/base/core/java/android/hardware/location/ |
H A D | IActivityRecognitionHardwareWatcher.aidl | 31 void onInstanceChanged(in IActivityRecognitionHardware instance);
|
/frameworks/base/core/java/android/util/ |
H A D | Pools.java | 28 * MyPooledClass instance = sPool.acquire(); 29 * return (instance != null) ? instance : new MyPooledClass(); 53 * @return An instance from the pool if such, null otherwise. 58 * Release an instance to the pool. 60 * @param instance The instance to release. 61 * @return Whether the instance was put in the pool. 63 * @throws IllegalStateException If the instance is already in the pool. 65 public boolean release(T instance); argument 110 release(T instance) argument 122 isInPool(T instance) argument [all...] |
H A D | Xml.java | 106 return XmlSerializerFactory.instance.newSerializer(); 116 static final XmlPullParserFactory instance; field in class:Xml.XmlSerializerFactory 119 instance = XmlPullParserFactory.newInstance(TYPE, null);
|
/frameworks/base/location/java/android/location/ |
H A D | IFusedProvider.aidl | 27 * Provides access to a FusedLocationHardware instance needed for the provider to work. 29 * @param instance The FusedLocationHardware available for the provider to use. 31 void onFusedLocationHardwareChange(in IFusedLocationHardware instance);
|
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/dataclass/ |
H A D | ClassWithNative_Delegate.java | 27 public static int native_instance(ClassWithNative instance, int a, double d, Object[] o) { argument 29 o[0] = instance;
|
H A D | OuterClass_Delegate.java | 26 public static int get(OuterClass instance, int a, long b) { argument 30 public static String privateMethod(OuterClass instance) { argument
|
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | Pools.java | 30 * MyPooledClass instance = sPool.acquire(); 31 * return (instance != null) ? instance : new MyPooledClass(); 54 * @return An instance from the pool if such, null otherwise. 59 * Release an instance to the pool. 61 * @param instance The instance to release. 62 * @return Whether the instance was put in the pool. 64 * @throws IllegalStateException If the instance is already in the pool. 66 public boolean release(T instance); argument 111 release(T instance) argument 123 isInPool(T instance) argument [all...] |
/frameworks/base/location/lib/java/com/android/location/provider/ |
H A D | FusedProvider.java | 35 public void onFusedLocationHardwareChange(IFusedLocationHardware instance) { 36 setFusedLocationHardware(new FusedLocationHardware(instance)); 45 * @return The IBinder instance associated with the provider. 52 * Sets the FusedLocationHardware instance in the provider.. 53 * @param value The instance to set. This can be null in cases where the service connection
|
H A D | ActivityRecognitionProviderWatcher.java | 54 public void onInstanceChanged(IActivityRecognitionHardware instance) { 62 mActivityRecognitionProvider = new ActivityRecognitionProvider(instance);
|
/frameworks/support/v4/java/android/support/v4/hardware/display/ |
H A D | DisplayManagerCompat.java | 51 * Gets an instance of the display manager given the context. 55 DisplayManagerCompat instance = sInstances.get(context); 56 if (instance == null) { 59 instance = new JellybeanMr1Impl(context); 61 instance = new LegacyImpl(context); 63 sInstances.put(context, instance); 65 return instance;
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothGattDescriptor.java | 137 int instance, int permissions) { 138 initDescriptor(characteristic, uuid, instance, permissions); 142 int instance, int permissions) { 145 mInstance = instance; 175 * Returns the instance ID for this descriptor. 178 * the instance ID is used to distuinguish between descriptors. 136 BluetoothGattDescriptor(BluetoothGattCharacteristic characteristic, UUID uuid, int instance, int permissions) argument 141 initDescriptor(BluetoothGattCharacteristic characteristic, UUID uuid, int instance, int permissions) argument
|
/frameworks/base/core/java/com/android/server/ |
H A D | AppWidgetBackupBridge.java | 30 public static void register(WidgetBackupProvider instance) { argument 31 sAppWidgetService = instance;
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiCollection.java | 26 * Constructs an instance as described by the selector 41 * The returned UiObject will point at the <code>childPattern</code> instance that matched the 46 * @return {@link UiObject} pointing at and instance of <code>childPattern</code> 75 * a child UI element anywhere within its sub hierarchy that is at the <code>instance</code> 80 * @param instance int the desired matched instance of this <code>childPattern</code> 81 * @return {@link UiObject} pointing at and instance of <code>childPattern</code> 84 public UiObject getChildByInstance(UiSelector childPattern, int instance) argument 86 Tracer.trace(childPattern, instance); 88 UiSelector.patternBuilder(childPattern).instance(instanc [all...] |
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
H A D | DelegateClassAdapterTest.java | 72 // create an instance of the class that will be modified 308 * instance methods via reflection. 362 public int callGet(Object instance, int a, long b) throws Exception { argument 363 Method m = instance.getClass().getMethod("get", 366 Object result = m.invoke(instance, a, b); 374 public int callGet_Original(Object instance, int a, long b) throws Exception { argument 375 Method m = instance.getClass().getMethod("get_Original", 378 Object result = m.invoke(instance, a, b); 386 public <T> T callMethod(Object instance, String methodName, boolean makePublic) throws Exception { argument 387 Method m = instance 406 callAdd(Object instance, int a, int b) argument 418 callCallNativeInstance(Object instance, int a, double d, Object[] o) argument [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputMethodSubtypeArray.java | 51 * Create a new instance of {@link InputMethodSubtypeArray} from an existing list of 67 * Unmarshall an instance of {@link InputMethodSubtypeArray} from a given {@link Parcel} 82 * Marshall the instance into a given {@link Parcel} object. 139 InputMethodSubtype[] instance = mInstance; 140 if (instance == null) { 142 instance = mInstance; 143 if (instance == null) { 150 instance = unmarshall(decompressedData); 153 instance = new InputMethodSubtype[mCount]; 155 mInstance = instance; [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 194 Object instance = null; 197 instance = clazz.newInstance(); 200 method.invoke(instance, filePath); 204 return (Bitmap) clazz.getMethod("captureFrame").invoke(instance); 206 byte[] data = (byte[]) clazz.getMethod("getEmbeddedPicture").invoke(instance); 211 return (Bitmap) clazz.getMethod("getFrameAtTime").invoke(instance); 229 if (instance != null) { 230 clazz.getMethod("release").invoke(instance);
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | DisplayModifier.java | 268 paint.setShader(ResourceModifiers.instance().mRepeatShader); 276 paint.setShader(ResourceModifiers.instance().mTranslatedShader); 282 paint.setShader(ResourceModifiers.instance().mScaledShader); 288 paint.setShader(ResourceModifiers.instance().mHorGradient); 294 paint.setShader(ResourceModifiers.instance().mDiagGradient); 302 paint.setShader(ResourceModifiers.instance().mVertGradient); 308 paint.setShader(ResourceModifiers.instance().mRadGradient); 314 paint.setShader(ResourceModifiers.instance().mSweepGradient); 320 paint.setShader(ResourceModifiers.instance().mComposeShader); 326 paint.setShader(ResourceModifiers.instance() [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | OMX.cpp | 169 OMXNodeInstance *instance; local 177 instance = mLiveNodes.editValueAt(index); 180 index = mDispatchers.indexOfKey(instance->nodeID()); 184 invalidateNodeID_l(instance->nodeID()); 187 instance->onObserverDied(mMaster); 228 OMXNodeInstance *instance = new OMXNodeInstance(this, observer, name); local 233 instance, &handle); 238 instance->onGetHandleFailed(); 243 *node = makeNodeID(instance); 244 mDispatchers.add(*node, new CallbackDispatcher(instance)); 255 OMXNodeInstance *instance = findInstance(node); local 488 makeNodeID(OMXNodeInstance *instance) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | VelocityTracker.java | 25 * Use {@link #obtain} to retrieve a new instance of the class when you are going 58 VelocityTracker instance = sPool.acquire(); 59 return (instance != null) ? instance : new VelocityTracker(null);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NoisyVelocityTracker.java | 52 NoisyVelocityTracker instance = sNoisyPool.acquire(); 53 return (instance != null) ? instance : new NoisyVelocityTracker();
|
/frameworks/base/test-runner/src/android/test/ |
H A D | ProviderTestCase2.java | 54 * An instance of the provider under test, running in an {@link IsolatedContext}. 112 * @return T An instance of the provider class given as a parameter to the test case class. 123 * that isolates the provider's file operations, and a new instance of 147 * Creates and sets up a new instance of the provider. 152 T instance = providerClass.newInstance(); 155 instance.attachInfoForTesting(context, providerInfo); 156 return instance; 175 * @return A {@link MockContentResolver} instance. 183 * @return The {@link IsolatedContext} instance
|
/frameworks/base/core/java/android/text/ |
H A D | AutoText.java | 82 * Returns the instance of AutoText. If the locale has changed, it will create a new 83 * instance of AutoText for the locale. 85 * @return the single instance of AutoText 90 AutoText instance; 93 instance = sInstance; 95 if (!locale.equals(instance.mLocale)) { 96 instance = new AutoText(res); 97 sInstance = instance; 101 return instance;
|