Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 50) sorted by relevance

12

/developers/samples/android/common/src/java/com/example/android/common/util/
DPools.java92 public boolean release(T instance); in release() argument
135 T instance = (T) mPool[lastPooledIndex]; in acquire() local
138 return instance; in acquire()
155 public boolean release(T instance) { in release() argument
156 if (isInPool(instance)) { in release()
160 mPool[mPoolSize] = instance; in release()
172 private boolean isInPool(T instance) { in isInPool() argument
174 if (mPool[i] == instance) { in isInPool()
/developers/build/prebuilts/gradle/BasicMultitouch/Application/src/main/java/com/example/android/basicmultitouch/
DPools.java65 public boolean release(T instance); in release() argument
101 T instance = (T) mPool[lastPooledIndex]; in acquire() local
104 return instance; in acquire()
110 public boolean release(T instance) { in release() argument
111 if (isInPool(instance)) { in release()
115 mPool[mPoolSize] = instance; in release()
122 private boolean isInPool(T instance) { in isInPool() argument
124 if (mPool[i] == instance) { in isInPool()
/developers/samples/android/input/multitouch/BasicMultitouch/Application/src/main/java/com/example/android/basicmultitouch/
DPools.java65 public boolean release(T instance); in release() argument
101 T instance = (T) mPool[lastPooledIndex]; in acquire() local
104 return instance; in acquire()
110 public boolean release(T instance) { in release() argument
111 if (isInPool(instance)) { in release()
115 mPool[mPoolSize] = instance; in release()
122 private boolean isInPool(T instance) { in isInPool() argument
124 if (mPool[i] == instance) { in isInPool()
/developers/samples/android/media/BasicMediaDecoder/
DREADME.md19 2. Initialise a MediaExtractor instance with `new MediaExtractor()` and a TimeAnimator instance with
21 …o start video playback, call `setDataSource(this, videoUri, null)` on your MediaExtractor instance,
23 4. On your MediaExtractor instance, call `getTrackCount()` to know how many tracks you have in your…
27 on your MediaExtractor instance, where `i` is the index of your selected track.
29 on your MediaExtractor instance.
30 6. Create a MediaCodec instance by calling `MediaCodec.createDecoderByType(mimeType)`.
31 7. Configure your MediaCodec instance with `configure(trackFormat, textureView, null, 0)`,
32 where `trackFormat` is obtained by calling `getTrackFormat(i)` on your MediaExtractor instance.
33 8. Set a TimeListener on your TimeAnimation instance, and override its `onTimeUpdate(final TimeAnim…
36 on your MediaExtractor instance and looking for `MediaCodec.BUFFER_FLAG_END_OF_STREAM` flag.
[all …]
/developers/build/prebuilts/gradle/BasicMediaDecoder/
DREADME.md19 2. Initialise a MediaExtractor instance with `new MediaExtractor()` and a TimeAnimator instance with
21 …o start video playback, call `setDataSource(this, videoUri, null)` on your MediaExtractor instance,
23 4. On your MediaExtractor instance, call `getTrackCount()` to know how many tracks you have in your…
27 on your MediaExtractor instance, where `i` is the index of your selected track.
29 on your MediaExtractor instance.
30 6. Create a MediaCodec instance by calling `MediaCodec.createDecoderByType(mimeType)`.
31 7. Configure your MediaCodec instance with `configure(trackFormat, textureView, null, 0)`,
32 where `trackFormat` is obtained by calling `getTrackFormat(i)` on your MediaExtractor instance.
33 8. Set a TimeListener on your TimeAnimation instance, and override its `onTimeUpdate(final TimeAnim…
36 on your MediaExtractor instance and looking for `MediaCodec.BUFFER_FLAG_END_OF_STREAM` flag.
[all …]
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/
DChatRepository.kt42 private var instance: DefaultChatRepository? = null variable
45 return instance ?: synchronized(this) { in getInstance()
46 instance ?: DefaultChatRepository( in getInstance()
50 instance = it in getInstance()
/developers/build/prebuilts/gradle/Camera2Video/
DREADME.md23 camera device. Override its methods to set your CameraDevice instance, start the preview, and stop
27 on your CameraDevice instance.
29 …aptureSession(surfaces, new CameraCaptureSession.StateCallback(){})` on your CameraDevice instance,
31 your MediaRecorder instance.
32 7. Use `start()` and `stop()` methods on your MediaRecorder instance to actually start and stop the…
/developers/build/prebuilts/gradle/Camera2Video/kotlinApp/
DREADME.md23 camera device. Override its methods to set your CameraDevice instance, start the preview, and stop
27 on your CameraDevice instance.
29 …aptureSession(surfaces, new CameraCaptureSession.StateCallback(){})` on your CameraDevice instance,
31 your MediaRecorder instance.
32 7. Use `start()` and `stop()` methods on your MediaRecorder instance to actually start and stop the…
/developers/samples/android/media/Camera2Video/kotlinApp/
DREADME.md23 camera device. Override its methods to set your CameraDevice instance, start the preview, and stop
27 on your CameraDevice instance.
29 …aptureSession(surfaces, new CameraCaptureSession.StateCallback(){})` on your CameraDevice instance,
31 your MediaRecorder instance.
32 7. Use `start()` and `stop()` methods on your MediaRecorder instance to actually start and stop the…
/developers/samples/android/media/Camera2Video/
DREADME.md23 camera device. Override its methods to set your CameraDevice instance, start the preview, and stop
27 on your CameraDevice instance.
29 …aptureSession(surfaces, new CameraCaptureSession.StateCallback(){})` on your CameraDevice instance,
31 your MediaRecorder instance.
32 7. Use `start()` and `stop()` methods on your MediaRecorder instance to actually start and stop the…
/developers/build/templates/CardStream/_MODULE_/
DREADME-CardStream.txt29 For instance, if your package name is com.example.foo, create the file
41 -Create a instance of Card.Builder with a tag String that *must* be unique among all cards.
67 -After finishing setup process, call Buidler.build() to return a new instance of a Card.
71 -Inside your MainActivity.java class, call getCardStream() to get the instance of the CardStreamFra…
/developers/samples/android/sensors/BatchStepSensor/Application/
DREADME-CardStream.txt29 For instance, if your package name is com.example.foo, create the file
41 -Create a instance of Card.Builder with a tag String that *must* be unique among all cards.
67 -After finishing setup process, call Buidler.build() to return a new instance of a Card.
71 -Inside your MainActivity.java class, call getCardStream() to get the instance of the CardStreamFra…
/developers/samples/android/views/EmojiCompat/kotlinApp/
DREADME.md29 For the downloadable font configuration, you need to create an instance of the [FontRequest][5]
32 Downloadable Fonts documentation. You can then create an instance of
58 In order the use the bundled font, call init() method of [EmojiCompat][2] with an instance of
71 If you want to use EmojiCompat with a regular TextView, retrieve an instance of EmojiCompat by
78 If you want to use EmojiCompat in your custom TextView, you can create an instance of
/developers/build/prebuilts/gradle/EmojiCompat/kotlinApp/
DREADME.md29 For the downloadable font configuration, you need to create an instance of the [FontRequest][5]
32 Downloadable Fonts documentation. You can then create an instance of
58 In order the use the bundled font, call init() method of [EmojiCompat][2] with an instance of
71 If you want to use EmojiCompat with a regular TextView, retrieve an instance of EmojiCompat by
78 If you want to use EmojiCompat in your custom TextView, you can create an instance of
/developers/samples/android/prebuilts/gradle/EmojiCompat/
DREADME.md30 For the downloadable font configuration, you need to create an instance of the [FontRequest][5]
33 Downloadable Fonts documentation. You can then create an instance of
68 In order the use the bundled font, call init() method of [EmojiCompat][2] with an instance of
81 If you want to use EmojiCompat with a regular TextView, retrieve an instance of EmojiCompat by
88 If you want to use EmojiCompat in your custom TextView, you can create an instance of
/developers/build/prebuilts/gradle/EmojiCompat/
DREADME.md30 For the downloadable font configuration, you need to create an instance of the [FontRequest][5]
33 Downloadable Fonts documentation. You can then create an instance of
68 In order the use the bundled font, call init() method of [EmojiCompat][2] with an instance of
81 If you want to use EmojiCompat with a regular TextView, retrieve an instance of EmojiCompat by
88 If you want to use EmojiCompat in your custom TextView, you can create an instance of
/developers/samples/android/connectivity/nfc/BeamLargeFiles/Application/
DREADME-simpleview.txt25 For instance, if your package name is com.example.foo, create the file
/developers/build/templates/SimpleView/_MODULE_/
DREADME-simpleview.txt25 For instance, if your package name is com.example.foo, create the file
/developers/samples/android/deprecated/wearable/wear/SynchronizedNotifications/Application/
DREADME-simpleview.txt25 For instance, if your package name is com.example.foo, create the file
/developers/samples/android/security/keystore/BasicAndroidKeyStore/Application/
DREADME-simpleview.txt25 For instance, if your package name is com.example.foo, create the file
/developers/samples/android/security/ConfirmCredential/Application/
DREADME-singleview.txt35 For instance, if your package name is com.example.foo, create the file
/developers/samples/android/input/gestures/BasicGestureDetect/Application/
DREADME-singleview.txt35 For instance, if your package name is com.example.foo, create the file
/developers/samples/android/content/documentsUi/StorageProvider/Application/
DREADME-singleview.txt35 For instance, if your package name is com.example.foo, create the file
/developers/samples/android/ui/window/BasicImmersiveMode/Application/
DREADME-singleview.txt35 For instance, if your package name is com.example.foo, create the file
/developers/samples/android/media/HdrViewfinder/Application/
DREADME-singleview.txt35 For instance, if your package name is com.example.foo, create the file

12