Home
last modified time | relevance | path

Searched refs:createInstance (Results 1 – 25 of 70) sorted by relevance

123

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
DCustomizationParamsTest.java64 CustomizationParams instance = createInstance(params); in defaultColorManagedProfile()
76 CustomizationParams instance = createInstance(params); in defaultColorDeviceOwner()
88 CustomizationParams instance = createInstance(params); in respectsUrl()
100 CustomizationParams instance = createInstance(params); in urlDefaultsToNull()
112 CustomizationParams instance = createInstance(params); in ignoresInvalidUrl()
118 private CustomizationParams createInstance(ProvisioningParams params) { in createInstance() method in CustomizationParamsTest
119 return CustomizationParams.createInstance(params, mContext, mUtils); in createInstance()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/command/
DPpsMoDataTest.java65 assertEquals(TEST_PPS_MO_XML, PpsMoData.createInstance(propertyInfo).getPpsMoTree()); in verifyGetPpsMo()
80 assertNull(PpsMoData.createInstance(propertyInfo)); in verifyMissingPpsMoReturnNull()
95 assertNull(PpsMoData.createInstance(propertyInfo)); in verifyMissingTreeURIAttributeReturnNull()
110 assertNull(PpsMoData.createInstance(propertyInfo)); in verifyMissingMoUrnAttributeReturnNull()
121 assertNull(PpsMoData.createInstance(propertyInfo)); in verifyNonAddMoCommandMessageReturnNull()
DSppCommandTest.java59 SppCommand result = SppCommand.createInstance(propertyInfo); in verifyLaunchBrowserCommand()
78 SppCommand result = SppCommand.createInstance(propertyInfo); in verifyOtherCommandTypesReturnNull()
93 assertNull(SppCommand.createInstance(propertyInfo)); in verifyIncompleteCommandReturnNull()
104 SppCommand result = SppCommand.createInstance(propertyInfo); in verifyInvalidCommandReturnNull()
DBrowserUriTest.java57 mBrowserUri = BrowserUri.createInstance(mPropertyInfo); in verifyGetUri()
67 mBrowserUri = BrowserUri.createInstance(mPropertyInfo); in verifyInvalidMessageReturnNull()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/adapters/
DTermsListAdapterTest.java42 TermsDocument.createInstance("h0", "c0");
43 private static final TermsDocument DOC_1 = TermsDocument.createInstance("h1", "c1");
44 private static final TermsDocument DOC_2 = TermsDocument.createInstance("h2", "c2");
45 private static final TermsDocument DOC_3 = TermsDocument.createInstance("h3", "c3");
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DCustomizationParams.java39 public static CustomizationParams createInstance( in createInstance() method in CustomizationParams
41 return createInstance(params.supportUrl, context, utils); in createInstance()
44 private static CustomizationParams createInstance( in createInstance() method in CustomizationParams
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningControllerFactory.java48 return DeviceOwnerProvisioningController.createInstance( in createProvisioningController()
55 return FinancedDeviceProvisioningController.createInstance( in createProvisioningController()
61 return ProfileOwnerProvisioningController.createInstance( in createProvisioningController()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DPostDevDataResponseTest.java65 SppCommand expectedResult = SppCommand.createInstance(propertyInfo); in verifyValidPostDevDataResponse()
74 mPostDevDataResponse = PostDevDataResponse.createInstance(response); in verifyValidPostDevDataResponse()
89 mPostDevDataResponse = PostDevDataResponse.createInstance(response); in verifyInvalidPostDevDataResponseReturnNull()
DExchangeCompleteMessageTest.java50 mExchangeCompleteMessage = ExchangeCompleteMessage.createInstance(response); in verifyValidExchangeComplete()
63 mExchangeCompleteMessage = ExchangeCompleteMessage.createInstance(response); in verifyInvalidExchangeCompleteReturnNull()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/command/
DSppCommand.java121 mCommandData = BrowserUri.createInstance(commandInfo); in SppCommand()
142 mCommandData = PpsMoData.createInstance(soapResponse); in SppCommand()
170 public static SppCommand createInstance(@NonNull PropertyInfo soapResponse) { in createInstance() method in SppCommand
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsProvider.java109 return TermsDocument.createInstance(heading, content); in getGeneralDisclaimer()
126 terms.add(TermsDocument.createInstance(header, content)); in getSystemAppTerms()
142 result.add(TermsDocument.createInstance(disclaimer.mHeader, htmlContent)); in getExtraDisclaimers()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityThread.java36 private static final ConnectivityThread INSTANCE = createInstance();
43 private static ConnectivityThread createInstance() { in createInstance() method in ConnectivityThread
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DSoapParser.java38 responseMessage = PostDevDataResponse.createInstance(response); in getResponse()
41 responseMessage = ExchangeCompleteMessage.createInstance(response); in getResponse()
DPostDevDataResponse.java48 mSppCommand = SppCommand.createInstance(propertyInfo); in PostDevDataResponse()
57 public static PostDevDataResponse createInstance(@NonNull SoapObject response) { in createInstance() method in PostDevDataResponse
/packages/apps/Settings/src/com/android/settings/core/
DBasePreferenceController.java134 public static BasePreferenceController createInstance(Context context, in createInstance() method in BasePreferenceController
154 public static BasePreferenceController createInstance(Context context, String controllerName) { in createInstance() method in BasePreferenceController
177 public static BasePreferenceController createInstance(Context context, String controllerName, in createInstance() method in BasePreferenceController
DPreferenceControllerListHelper.java72 controller = BasePreferenceController.createInstance(context, controllerName); in getPreferenceControllersFromXml()
83 controller = BasePreferenceController.createInstance(context, controllerName, in getPreferenceControllersFromXml()
/packages/apps/Contacts/src/com/android/contacts/extensions/
DExtensionsFactory.java58 mExtendedPhoneDirectoriesManager = createInstance(className); in init()
77 private static <T> T createInstance(String className) { in createInstance() method in ExtensionsFactory
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuServerConnectionTest.java375 when(HttpsTransport.createInstance(any(Network.class), any(URL.class))).thenReturn( in verifyExchangeSoapMessageWithException()
404 when(HttpsTransport.createInstance(any(Network.class), any(URL.class))).thenReturn( in verifyExchangeSoapMessage()
448 when(HttpsTransport.createInstance(any(Network.class), any(URL.class))).thenReturn( in verifyRetrieveTrustRootCertsWithErrorInHTTPSResponse()
496 when(HttpsTransport.createInstance(any(Network.class), any(URL.class))).thenReturn( in verifyRetrieveTrustRootCertsWithoutError()
546 when(HttpsTransport.createInstance(any(Network.class), any(URL.class))).thenReturn( in verifyCleanup()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiFrameworkInitializer.java49 private static final HandlerThread INSTANCE = createInstance();
51 private static HandlerThread createInstance() { in createInstance() method in WifiFrameworkInitializer.NoPreloadHolder
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DBaseTunerSetupActivity.java499 mTunerHal = createInstance(); in getOrCreate()
527 protected Tuner createInstance() { in createInstance() method in BaseTunerSetupActivity.TunerHalCreator
528 return mTunerFactory.createInstance(mContext); in createInstance()
534 return createInstance(); in doInBackground()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPreferenceControllerListHelper.java82 controllers.add(createInstance(controllerName, context, key, fragmentController, in getPreferenceControllersFromXml()
89 private static PreferenceController createInstance(String controllerName, in createInstance() method in PreferenceControllerListHelper
/packages/apps/Settings/tests/unit/src/com/android/settings/slices/
DSpecialCaseSliceManagerTest.java52 final CustomSliceable sliceable = CustomSliceable.createInstance( in getSliceableFromUri_returnsCorrectObject()
66 final CustomSliceable sliceable = CustomSliceable.createInstance( in getSliceableFromUriWithParameter_returnsCorrectObject()
/packages/modules/Permission/service/api/
Dsystem-server-current.txt5 …ll public static com.android.permission.persistence.RuntimePermissionsPersistence createInstance();
40 method @NonNull public static com.android.role.persistence.RolesPersistence createInstance();
/packages/apps/Settings/src/com/android/settings/slices/
DSliceBackgroundWorker.java98 worker = createInstance(context.getApplicationContext(), uri, workerClass); in getInstance()
104 private static SliceBackgroundWorker createInstance(Context context, Uri uri, in createInstance() method in SliceBackgroundWorker
/packages/apps/TV/tuner/src/com/android/tv/tuner/api/
DTunerFactory.java25 Tuner createInstance(Context context); in createInstance() method

123