Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 141) sorted by relevance

123456

/packages/modules/AdServices/sdksandbox/tests/cts/inprocess/src/com/android/sdksandbox/tests/cts/inprocess/
DSdkSandboxConfigurationTest.java93 final String ctx = SELinux.getContext(); in testCorrectSelinuxDomain() local
100 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testCorrectSdkVersion() local
116 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testClientAppIsVisibleToSdkSandbox() local
129 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testGetDataDir_CE() local
142 final Context ctx = in testGetDataDir_DE() local
155 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testCanWriteToDataDir_CE() local
170 final Context ctx = in testCanWriteToDataDir_DE() local
193 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testCanResolveAndBindToAdServicesApiPackage() local
247 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testCurrentWebViewProviderIsVisibleToSdkSandbox() local
DSdkSandboxRestrictionsTest.java125 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testNoImplicitIntents() local
167 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testUrlViewIntents() local
244 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testSanboxCannotAccess_AppSpecificFiles() local
258 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testSanboxCannotAccess_MediaStoreApi() local
290 final Context ctx = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testSanboxCannotAccess_StorageAccessFramework() local
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DDataMigration.java105 static int run(Context ctx) { in run()
125 sharedPreferencesMigration(ctx.getPackageName() + "_preferences", ctx); in run() local
136 static boolean bluetoothDatabaseMigration(Context ctx) { in bluetoothDatabaseMigration()
158 static boolean oppDatabaseMigration(Context ctx) { in oppDatabaseMigration()
203 static boolean sharedPreferencesMigration(String prefKey, Context ctx) { in sharedPreferencesMigration()
238 static int migrationStatus(Context ctx) { in migrationStatus()
244 static boolean incrementeMigrationAttempt(Context ctx) { in incrementeMigrationAttempt()
254 static boolean isMigrationApkInstalled(Context ctx) { in isMigrationApkInstalled()
265 static void markMigrationStatus(Context ctx, int status) { in markMigrationStatus()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringDependencies.java82 public UpstreamNetworkMonitor getUpstreamNetworkMonitor(Context ctx, StateMachine target, in getUpstreamNetworkMonitor()
103 public EntitlementManager getEntitlementManager(Context ctx, Handler h, SharedLog log, in getEntitlementManager()
111 public TetheringConfiguration generateTetheringConfiguration(Context ctx, SharedLog log, in generateTetheringConfiguration()
127 public TetheringNotificationUpdater getNotificationUpdater(@NonNull final Context ctx, in getNotificationUpdater()
157 public PrivateAddressCoordinator getPrivateAddressCoordinator(Context ctx, in getPrivateAddressCoordinator()
182 public WearableConnectionManager getWearableConnectionManager(Context ctx) { in getWearableConnectionManager()
DTetheringConfiguration.java194 public TetheringConfiguration(@NonNull Context ctx, @NonNull SharedLog log, int id) { in TetheringConfiguration()
199 public TetheringConfiguration(@NonNull Context ctx, @NonNull SharedLog log, int id, in TetheringConfiguration()
464 public static boolean checkDunRequired(Context ctx) { in checkDunRequired()
623 private boolean isConnectivityFeatureEnabled(Context ctx, String featureVersionFlag) { in isConnectivityFeatureEnabled()
627 private boolean isTetheringFeatureEnabled(Context ctx, String featureVersionFlag) { in isTetheringFeatureEnabled()
631 private boolean isFeatureEnabled(Context ctx, String namespace, String featureVersionFlag) { in isFeatureEnabled()
636 private Resources getResources(Context ctx, int subId) { in getResources()
645 protected Resources getResourcesForSubIdWrapper(Context ctx, int subId) { in getResourcesForSubIdWrapper()
/packages/modules/adb/pairing_auth/
Dpairing_auth.cpp227 size_t pairing_auth_msg_size(PairingAuthCtx* ctx) { in pairing_auth_msg_size()
232 void pairing_auth_get_spake2_msg(PairingAuthCtx* ctx, uint8_t* out_buf) { in pairing_auth_get_spake2_msg()
239 bool pairing_auth_init_cipher(PairingAuthCtx* ctx, const uint8_t* their_msg, size_t msg_len) { in pairing_auth_init_cipher()
248 size_t pairing_auth_safe_encrypted_size(PairingAuthCtx* ctx, size_t len) { in pairing_auth_safe_encrypted_size()
253 bool pairing_auth_encrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, in pairing_auth_encrypt()
272 size_t pairing_auth_safe_decrypted_size(PairingAuthCtx* ctx, const uint8_t* buf, size_t len) { in pairing_auth_safe_decrypted_size()
280 bool pairing_auth_decrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, in pairing_auth_decrypt()
299 void pairing_auth_destroy(PairingAuthCtx* ctx) { in pairing_auth_destroy()
/packages/modules/adb/libs/adbconnection/
Dadbconnection_client.cpp62 auto ctx = std::make_unique<AdbConnectionClientContext>(); in adbconnection_client_new() local
185 void adbconnection_client_destroy(AdbConnectionClientContext* ctx) { in adbconnection_client_destroy()
189 int adbconnection_client_pollfd(AdbConnectionClientContext* ctx) { in adbconnection_client_pollfd()
193 int adbconnection_client_receive_jdwp_fd(AdbConnectionClientContext* ctx) { in adbconnection_client_receive_jdwp_fd()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/
DAnomalyActions.java43 public static void doAction(Context ctx, String actionCode, long durationMs) { in doAction()
59 private static void doUnoptimizedBleScan(Context ctx, long durationMs) { in doUnoptimizedBleScan()
101 private static void doHoldWakelock(Context ctx, long durationMs) { in doHoldWakelock()
/packages/modules/AdServices/adservices/service-core/jni/cpp/
Dohttp_jni.cpp39 const EVP_HPKE_KEM *ctx = EVP_hpke_x25519_hkdf_sha256(); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeKemDhkemX25519HkdfSha256() local
48 const EVP_HPKE_KDF *ctx = EVP_hpke_hkdf_sha256(); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeKdfHkdfSha256() local
57 const EVP_HPKE_AEAD *ctx = EVP_hpke_aes_256_gcm(); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeAeadAes256Gcm() local
75 EVP_HPKE_CTX *ctx = reinterpret_cast<EVP_HPKE_CTX *>(hpkeCtxRef); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxFree() local
86 const EVP_HPKE_CTX *ctx = EVP_HPKE_CTX_new(); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxNew() local
104 EVP_HPKE_CTX *ctx = reinterpret_cast<EVP_HPKE_CTX *>(senderHpkeCtxRef); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxSetupSenderWithSeed() local
197 EVP_HPKE_CTX *ctx = reinterpret_cast<EVP_HPKE_CTX *>(senderHpkeCtxRef); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeCtxSeal() local
258 EVP_HPKE_CTX *ctx = reinterpret_cast<EVP_HPKE_CTX *>(hpkeCtxRef); in Java_com_android_adservices_ohttp_OhttpJniWrapper_hpkeExport() local
/packages/apps/Settings/src/com/android/settings/wifi/
DLinkablePreference.java44 public LinkablePreference(Context ctx, AttributeSet attrs, int defStyle) { in LinkablePreference()
50 public LinkablePreference(Context ctx, AttributeSet attrs) { in LinkablePreference()
55 public LinkablePreference(Context ctx) { in LinkablePreference()
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/components/
DOemAppsManager.java34 public static Set<String> getDefaultAppsFor(@NonNull Context ctx, int type) { in getDefaultAppsFor()
49 private static ArraySet<String> getRes(Context ctx, int resId) { in getRes()
/packages/modules/AdServices/sdksandbox/tests/inprocess/src/com/android/sdksandbox/inprocess/
DSdkSandboxInProcessPermissionsTest.java46 final Context ctx = getInstrumentation().getContext(); in testAllowedPermissions() local
108 final Context ctx = getInstrumentation().getContext(); in testNotAllowedPermissions() local
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DFakeTetheringConfiguration.java28 FakeTetheringConfiguration(Context ctx, SharedLog log, int id) { in FakeTetheringConfiguration()
45 protected Resources getResourcesForSubIdWrapper(Context ctx, int subId) { in getResourcesForSubIdWrapper()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/display/velocity/
DVelocityEngineFactoryTests.java52 org.apache.velocity.context.Context ctx = in renderBasicTemplate() local
69 org.apache.velocity.context.Context ctx = in testMaxParseDepth() local
95 org.apache.velocity.context.Context ctx = in testMaxForeach() local
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DBpfInterfaceMapUpdater.java49 public BpfInterfaceMapUpdater(Context ctx, Handler handler) { in BpfInterfaceMapUpdater()
54 public BpfInterfaceMapUpdater(Context ctx, Handler handler, Dependencies deps) { in BpfInterfaceMapUpdater()
83 public INetd getINetd(Context ctx) { in getINetd()
DNetworkStatsFactory.java110 public BpfNetMaps createBpfNetMaps(@NonNull Context ctx) { in createBpfNetMaps()
152 public NetworkStatsFactory(@NonNull Context ctx) { in NetworkStatsFactory()
157 public NetworkStatsFactory(@NonNull Context ctx, Dependencies deps) { in NetworkStatsFactory()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DContextSingleton.java66 public void grantFullAccess(Context ctx, Uri uri) { in grantFullAccess()
80 public void grantFullAccess(Context ctx, String uri, String packageName) { in grantFullAccess()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityFrameworkInitializerTiramisuTest.kt37 val ctx = InstrumentationRegistry.getInstrumentation().context as android.content.Context in testServicesRegistered() constant
DConnectivityFrameworkInitializerTest.kt39 val ctx = InstrumentationRegistry.getInstrumentation().context as android.content.Context in testServicesRegistered() constant
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DImpressionReporter.java312 private void performReporting(ReportingUris reportingUris, ReportingContext ctx) { in performReporting()
346 @NonNull ReportingContext ctx) { in notifySuccessToCaller()
378 ReportingUris reportingUris, ReportingContext ctx) { in doReport()
448 ReportingContext ctx = new ReportingContext(); in computeReportingUris() local
/packages/apps/Car/DebuggingRestrictionController/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/
DLoginTest.java93 Context ctx = getApplicationContext(); in invalidEmail() local
102 Context ctx = getApplicationContext(); in invalidPassword() local
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DNetworkTraceHandler.cpp121 NetworkTraceHandler::Trace([&](NetworkTraceHandler::TraceContext ctx) { in __anon1baa155f0102()
156 NetworkTraceHandler::Trace([&](NetworkTraceHandler::TraceContext ctx) { in OnStop()
167 NetworkTraceHandler::TraceContext& ctx) { in Write()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DPickerIntentFactory.java29 Intent newIntent(Context ctx, String collectionId); in newIntent()
/packages/modules/Connectivity/nearby/tests/cts/fastpair/src/android/nearby/cts/
DNearbyFrameworkInitializerTest.java40 Context ctx = InstrumentationRegistry.getInstrumentation().getContext(); in testServicesRegistered() local
/packages/modules/Connectivity/framework/src/android/net/connectivity/
DTiramisuConnectivityInternalApiUtil.java44 public static IBinder getCompanionDeviceManagerProxyService(Context ctx) { in getCompanionDeviceManagerProxyService()

123456