/frameworks/base/graphics/java/android/graphics/ |
D | BitmapRegionDecoder.java | 62 public static BitmapRegionDecoder newInstance(@NonNull byte[] data, in newInstance() method in BitmapRegionDecoder 64 return newInstance(data, offset, length); in newInstance() 78 public static BitmapRegionDecoder newInstance(@NonNull byte[] data, in newInstance() method in BitmapRegionDecoder 100 public static BitmapRegionDecoder newInstance( in newInstance() method in BitmapRegionDecoder 115 public static BitmapRegionDecoder newInstance( in newInstance() method in BitmapRegionDecoder 140 public static BitmapRegionDecoder newInstance(@NonNull InputStream is, in newInstance() method in BitmapRegionDecoder 142 return newInstance(is); in newInstance() 157 public static BitmapRegionDecoder newInstance(@NonNull InputStream is) throws IOException { in newInstance() method in BitmapRegionDecoder 181 public static BitmapRegionDecoder newInstance(@NonNull String pathName, in newInstance() method in BitmapRegionDecoder 183 return newInstance(pathName); in newInstance() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | ConstantState.java | 44 public abstract T newInstance(); in newInstance() method in ConstantState 52 public T newInstance(Resources res) { in newInstance() method in ConstantState 53 return newInstance(); in newInstance() 60 public T newInstance(Resources res, Resources.Theme theme) { in newInstance() method in ConstantState 61 return newInstance(res); in newInstance()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | HeavyHitterSketch.java | 62 void add(@Nullable T newInstance); in add() argument 170 public void add(@Nullable final T newInstance) { in add() argument 175 addToMGSummary(newInstance); in add() 178 validate(newInstance); in add() 191 private void addToMGSummary(@Nullable final T newInstance) { in addToMGSummary() argument 192 final int hashCode = newInstance != null ? newInstance.hashCode() : 0; in addToMGSummary() 198 mObjects.put(hashCode, newInstance); in addToMGSummary() 223 private void validate(@Nullable final T newInstance) { in validate() argument 224 final int hashCode = newInstance != null ? newInstance.hashCode() : 0; in validate()
|
D | RingBuffer.java | 41 mBuffer = (T[]) Array.newInstance(c, capacity); in RingBuffer() 81 return (T) mBuffer.getClass().getComponentType().newInstance(); in createNewItem()
|
/frameworks/base/core/java/android/app/ |
D | AppComponentFactory.java | 76 return (Application) cl.loadClass(className).newInstance(); in instantiateApplication() 95 return (Activity) cl.loadClass(className).newInstance(); in instantiateActivity() 110 return (BroadcastReceiver) cl.loadClass(className).newInstance(); in instantiateReceiver() 129 return (Service) cl.loadClass(className).newInstance(); in instantiateService() 147 return (ContentProvider) cl.loadClass(className).newInstance(); in instantiateProvider()
|
D | ServiceStartNotAllowedException.java | 35 public static ServiceStartNotAllowedException newInstance(boolean foreground, in newInstance() method in ServiceStartNotAllowedException
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 57 public static SimpleBitmapRegionDecoderWrapper newInstance( in newInstance() method in SimpleBitmapRegionDecoderWrapper 60 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(pathName, isShareable); in newInstance() 70 public static SimpleBitmapRegionDecoderWrapper newInstance( in newInstance() method in SimpleBitmapRegionDecoderWrapper 73 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(is, isShareable); in newInstance() 101 public static DumbBitmapRegionDecoder newInstance(String pathName) { in newInstance() method in DumbBitmapRegionDecoder 108 public static DumbBitmapRegionDecoder newInstance(InputStream is) { in newInstance() method in DumbBitmapRegionDecoder 233 d = SimpleBitmapRegionDecoderWrapper.newInstance(mPath, true); in loadBitmapRegionDecoder() 235 d = DumbBitmapRegionDecoder.newInstance(mPath); in loadBitmapRegionDecoder() 275 SimpleBitmapRegionDecoderWrapper.newInstance(is, false); in loadBitmapRegionDecoder() 279 regionDecoder = DumbBitmapRegionDecoder.newInstance(is); in loadBitmapRegionDecoder() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationTrackerTest.java | 41 mTertiaryKeyRotationTracker = newInstance(); in setUp() 98 boolean keyRotationDueForNewInstance = newInstance().isKeyRotationDue(PACKAGE_1); in isKeyRotationDue_forNewInstance_readsStateFromDisk() 134 private static TertiaryKeyRotationTracker newInstance() { in newInstance() method in TertiaryKeyRotationTrackerTest
|
D | TertiaryKeyStoreTest.java | 61 TertiaryKeyStore.newInstance( in setUp() 86 TertiaryKeyStore.newInstance( in load_doesNotLoadAKeyForAnotherSecondary() 107 TertiaryKeyStore.newInstance( in load_throwsIfHasWrongBackupKey() 189 TertiaryKeyStore.newInstance( in getAll_doesNotReturnKeysForOtherSecondary()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageInstallerActivity.java | 181 return SimpleErrorDialog.newInstance(R.string.Parse_error_dlg_text); in createDialog() 183 return OutOfSpaceDialog.newInstance( in createDialog() 186 return InstallErrorDialog.newInstance( in createDialog() 189 return NotSupportedOnWearDialog.newInstance(); in createDialog() 191 return SimpleErrorDialog.newInstance( in createDialog() 194 return SimpleErrorDialog.newInstance( in createDialog() 197 return ExternalSourcesBlockedDialog.newInstance(mOriginatingPackage); in createDialog() 199 return AnonymousSourceDialog.newInstance(); in createDialog() 644 static SimpleErrorDialog newInstance(@StringRes int message) { in newInstance() method in PackageInstallerActivity.SimpleErrorDialog 673 static AnonymousSourceDialog newInstance() { in newInstance() method in PackageInstallerActivity.AnonymousSourceDialog [all …]
|
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/ |
D | DelegateClassAdapterTest.java | 85 ClassWithNative instance1 = clazz1.newInstance(); in testNoOp() 113 Object i2 = clazz2.newInstance(); in testNoOp() 168 Object i2 = clazz2.newInstance(); in testConstructorAfterDelegate() 200 Object o2 = outerClazz2.newInstance(); in testInnerConstructorAfterDelegate() 203 Object i2 = clazz2.getConstructor(outerClazz2).newInstance(o2); in testInnerConstructorAfterDelegate() 235 Object i2 = clazz2.newInstance(); in testStaticInnerConstructorAfterDelegate() 335 Object i2 = clazz2.newInstance(); in testDelegateNative() 400 Object o2 = outerClazz2.newInstance(); in testDelegateInner() 434 Object i2 = innerCons.newInstance(o2); in testDelegateInner() 482 Object o2 = outerClazz2.newInstance(); in testDelegateStaticInner() [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/util/ |
D | ArrayUtils.java | 62 result = (T[]) Array.newInstance(kind, end + 1); in appendElement() 66 result = (T[]) Array.newInstance(kind, 1); in appendElement() 101 final T[] all = (T[]) Array.newInstance(kind, totalLength); in concatElements() 120 return (T[]) Array.newInstance(kind, 0); in createEmptyArray()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | TestUtils.java | 35 final SensorEvent event = constructor.newInstance(1); in createSensorEvent() 57 Sensor sensor = constr.newInstance(); in createSensor()
|
/frameworks/multidex/library/src/androidx/multidex/ |
D | MultiDex.java | 449 Object[] combined = (Object[]) Array.newInstance( in expandFieldArray() 595 Object newInstance(File file, DexFile dex) in newInstance() method 614 public Object newInstance(File file, DexFile dex) in newInstance() method in MultiDex.V14.ICSElementConstructor 617 return elementConstructor.newInstance(file, new ZipFile(file), dex); in newInstance() 637 public Object newInstance(File file, DexFile dex) in newInstance() method in MultiDex.V14.JBMR11ElementConstructor 640 return elementConstructor.newInstance(file, file, dex); in newInstance() 660 public Object newInstance(File file, DexFile dex) in newInstance() method in MultiDex.V14.JBMR2ElementConstructor 663 return elementConstructor.newInstance(file, Boolean.FALSE, file, dex); in newInstance() 722 elements[i] = elementConstructor.newInstance( in makeDexElements()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyStore.java | 59 public static TertiaryKeyStore newInstance( in newInstance() method in TertiaryKeyStore 61 return new TertiaryKeyStore(secondaryKey, BackupEncryptionDb.newInstance(context)); in newInstance() 198 CodedOutputByteBufferNano out = CodedOutputByteBufferNano.newInstance(buffer); in getEncodedKey()
|
/frameworks/base/packages/BackupEncryption/test/robolectric-integration/src/com/android/server/backup/encryption/ |
D | RoundTripTest.java | 169 backupTaskFactory.newInstance( in performNonIncrementalKeyValueBackup() 187 EncryptedFullBackupTask.newInstance( in performFullBackup() 203 restoreTaskFactory.newInstance( in performKeyValueRestore() 222 EncryptedFullRestoreTask.newInstance( in performFullRestore()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SliceFullAccessListTest.java | 88 XmlSerializer out = XmlPullParserFactory.newInstance().newSerializer(); in testSerialization() 99 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser(); in testDeSerialization()
|
D | SliceClientPermissionsTest.java | 214 XmlSerializer serializer = XmlPullParserFactory.newInstance().newSerializer(); in testSerialization() 221 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser(); in testSerialization() 233 XmlSerializer serializer = XmlPullParserFactory.newInstance().newSerializer(); in testReadEmptyFile_ThrowException() 241 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser(); in testReadEmptyFile_ThrowException()
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestMethod.java | 91 TestCase test = ((Constructor<? extends TestCase>) constructor).newInstance(); in instantiateTest() 98 .newInstance(testName); in instantiateTest()
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
D | AndroidHttpClientProxyTest.java | 24 return AndroidHttpClient.newInstance(AbstractProxyTest.class.getName()); in newHttpClient()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/ |
D | KeyValueEncrypter.java | 53 backupTaskFactory.newInstance( in encryptKeyValueData() 71 restoreTaskFactory.newInstance( in decryptKeyValueData()
|
/frameworks/base/core/java/android/util/ |
D | IconDrawableFactory.java | 117 public static IconDrawableFactory newInstance(Context context) { in newInstance() method in IconDrawableFactory 121 public static IconDrawableFactory newInstance(Context context, boolean embedShadow) { in newInstance() method in IconDrawableFactory
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | HeavyHitterSketchTest.java | 47 public void add(final T newInstance) { in add() argument 48 int val = mData.getOrDefault(newInstance, 0); in add() 49 mData.put(newInstance, val + 1); in add()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | TunerPreferenceFragment.java | 29 .newInstance(preference.getKey()); in onDisplayPreferenceDialog()
|
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/pidfparser/pidf/ |
D | NoteTest.java | 99 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser(); in testParsing() 126 XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); in getXmlSerializer()
|