Home
last modified time | relevance | path

Searched refs:proxy (Results 1 – 25 of 139) sorted by relevance

123456

/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProxySubscriptionManagerTest.java77 ProxySubscriptionManager proxy = in getInstance() local
79 proxy.init(context, mActiveSubscriptionsListener, mAirplaneModeOnSettingsChangeListener); in getInstance()
80 proxy.notifySubscriptionInfoMightChanged(); in getInstance()
81 return proxy; in getInstance()
108 ProxySubscriptionManager proxy = getInstance(mContext); in addActiveSubscriptionsListener_addOneClient_getNoCallback() local
110 proxy.addActiveSubscriptionsListener(mClient1); in addActiveSubscriptionsListener_addOneClient_getNoCallback()
117 ProxySubscriptionManager proxy = getInstance(mContext); in addActiveSubscriptionsListener_addOneClient_changeOnSimGetCallback() local
119 proxy.addActiveSubscriptionsListener(mClient1); in addActiveSubscriptionsListener_addOneClient_changeOnSimGetCallback()
122 proxy.notifySubscriptionInfoMightChanged(); in addActiveSubscriptionsListener_addOneClient_changeOnSimGetCallback()
129 ProxySubscriptionManager proxy = getInstance(mContext); in addActiveSubscriptionsListener_addOneClient_noCallbackUntilUiResume() local
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/
Dbluetooth_manager.rs19 proxy: StateMachineProxy, field
24 pub fn new(proxy: StateMachineProxy) -> BluetoothManager { in new()
25 BluetoothManager { proxy, callbacks: HashMap::new() } in new()
29 state_to_enabled(self.proxy.get_process_state(hci_device)) in is_adapter_enabled()
33 self.proxy.get_state(hci_device, move |a| Some(a.present)).unwrap_or(false) in is_adapter_present()
76 self.proxy.modify_state(virt_hci, move |a: &mut AdapterState| a.config_enabled = true); in start()
83 self.proxy.start_bluetooth(virt_hci); in start()
95 self.proxy.modify_state(virt_hci, move |a: &mut AdapterState| a.config_enabled = false); in stop()
102 self.proxy.stop_bluetooth(virt_hci); in stop()
110 let tx = self.proxy.get_tx(); in register_callback()
[all …]
/packages/services/Car/car-builtin-lib/src/android/car/builtin/bluetooth/le/
DAdvertisingSetCallbackHelper.java179 @NonNull Callback proxy) { in createRealCallbackFromProxy()
185 proxy.onAdvertisingSetStarted(advertisingSet, txPower, status); in createRealCallbackFromProxy()
190 proxy.onAdvertisingSetStopped(advertisingSet); in createRealCallbackFromProxy()
196 proxy.onAdvertisingEnabled(advertisingSet, enable, status); in createRealCallbackFromProxy()
201 proxy.onAdvertisingDataSet(advertisingSet, status); in createRealCallbackFromProxy()
206 proxy.onScanResponseDataSet(advertisingSet, status); in createRealCallbackFromProxy()
212 proxy.onAdvertisingParametersUpdated(advertisingSet, txPower, status); in createRealCallbackFromProxy()
218 proxy.onPeriodicAdvertisingParametersUpdated(advertisingSet, status); in createRealCallbackFromProxy()
224 proxy.onPeriodicAdvertisingDataSet(advertisingSet, status); in createRealCallbackFromProxy()
230 proxy.onPeriodicAdvertisingEnabled(advertisingSet, enable, status); in createRealCallbackFromProxy()
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageToProcess.java31 public final ImageProxy proxy; field in ImageToProcess
45 public ImageToProcess(ImageProxy proxy, OrientationManager.DeviceOrientation imageRotation, in ImageToProcess() argument
47 this.proxy = proxy; in ImageToProcess()
60 public ImageToProcess(ImageProxy proxy, OrientationManager.DeviceOrientation imageRotation, in ImageToProcess() argument
62 this(proxy, imageRotation, metadata, new Rect(0, 0, proxy.getWidth(), proxy.getHeight())); in ImageToProcess()
DTaskChainedCompressImageToJpeg.java52 Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run()
53 final List<ImageProxy.Plane> planeList = img.proxy.getPlanes(); in run()
55 final TaskImage inputImage = new TaskImage(mImage.rotation, img.proxy.getWidth(), in run()
56 img.proxy.getHeight(), img.proxy.getFormat(), safeCrop); in run()
57 final TaskImage resultImage = new TaskImage(mImage.rotation, img.proxy.getWidth(), in run()
58 img.proxy.getHeight(), ImageFormat.JPEG , safeCrop); in run()
74 dataCopy = convertYUV420ImageToPackedNV21(img.proxy); in run()
DTaskCompressImageToJpeg.java124 switch (img.proxy.getFormat()) { in run()
133 ByteBuffer origBuffer = img.proxy.getPlanes().get(0).getBuffer(); in run()
189 safeCrop = guaranteedSafeCrop(img.proxy, in run()
205 img.proxy.getFormat(), safeCrop); in run()
207 if(requiresCropOperation(img.proxy, safeCrop)) { in run()
213 img.proxy.getFormat(), null); in run()
238 safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run()
240 inputImage = new TaskImage(img.rotation, img.proxy.getWidth(), in run()
241 img.proxy.getHeight(), in run()
242 img.proxy.getFormat(), safeCrop); in run()
[all …]
DTaskPreviewChainedJpeg.java64 Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run()
76 logWrapper("TIMER_END Rendering preview YUV buffer available, w=" + img.proxy.getWidth() in run()
77 / subsample + " h=" + img.proxy.getHeight() / subsample + " of subsample " in run()
80 convertedImage = runSelectedConversion(img.proxy, safeCrop, subsample); in run()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkProvider.java293 NetworkOfferCallbackProxy proxy = null; in registerNetworkOffer()
297 proxy = existingProxy; in registerNetworkOffer()
301 if (null == proxy) { in registerNetworkOffer()
302 proxy = new NetworkOfferCallbackProxy(callback, executor); in registerNetworkOffer()
303 mProxies.add(proxy); in registerNetworkOffer()
307 .offerNetwork(providerId, score, caps, proxy); in registerNetworkOffer()
332 final NetworkOfferCallbackProxy proxy = findProxyForCallback(callback); in unregisterNetworkOffer() local
333 if (null == proxy) return; in unregisterNetworkOffer()
335 mProxies.remove(proxy); in unregisterNetworkOffer()
337 mContext.getSystemService(ConnectivityManager.class).unofferNetwork(proxy); in unregisterNetworkOffer()
DNetwork.java326 final java.net.Proxy proxy; in openConnection() local
328 proxy = proxyInfo.makeProxy(); in openConnection()
330 proxy = java.net.Proxy.NO_PROXY; in openConnection()
332 return openConnection(url, proxy); in openConnection()
346 public URLConnection openConnection(URL url, java.net.Proxy proxy) throws IOException { in openConnection() argument
347 if (proxy == null) throw new IllegalArgumentException("proxy is null"); in openConnection()
372 return urlConnectionFactory.openConnection(url, socketFactory, proxy); in openConnection()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DProxyTracker.java98 public void onPacProxyInstalled(@Nullable Network network, @NonNull ProxyInfo proxy) { in onPacProxyInstalled() argument
99 Log.i(TAG, "PAC proxy installed on network " + network + " : " + proxy); in onPacProxyInstalled()
102 .obtainMessage(mEvent, new Pair<>(network, proxy))); in onPacProxyInstalled()
121 private static ProxyInfo canonicalizeProxyInfo(@Nullable final ProxyInfo proxy) { in canonicalizeProxyInfo() argument
122 if (proxy != null && TextUtils.isEmpty(proxy.getHost()) in canonicalizeProxyInfo()
123 && Uri.EMPTY.equals(proxy.getPacFileUrl())) { in canonicalizeProxyInfo()
126 return proxy; in canonicalizeProxyInfo()
220 final String proxy = Settings.Global.getString(mContext.getContentResolver(), HTTP_PROXY); in loadDeprecatedGlobalHttpProxy() local
221 if (!TextUtils.isEmpty(proxy)) { in loadDeprecatedGlobalHttpProxy()
222 String data[] = proxy.split(":"); in loadDeprecatedGlobalHttpProxy()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacProxyManagerTest.java107 public void onPacProxyInstalled(Network network, ProxyInfo proxy) { in onPacProxyInstalled() argument
122 ProxyBroadcastReceiver(ProxyInfo proxy) { in ProxyBroadcastReceiver() argument
123 mProxy = proxy; in ProxyBroadcastReceiver()
128 final ProxyInfo proxy = (ProxyInfo) intent.getExtra(Proxy.EXTRA_PROXY_INFO, in onReceive() local
135 if (mProxy.getPacFileUrl().equals(proxy.getPacFileUrl())) { in onReceive()
139 assertEquals(proxy.getHost(), "localhost"); in onReceive()
140 assertInRange(proxy.getPort(), 0 /* lower */, 65535 /* upper */); in onReceive()
172 final ProxyInfo proxy = ProxyInfo.buildPacProxy(pacProxyUrl); in testSetCurrentProxyScriptUrl() local
173 final ProxyBroadcastReceiver receiver = new ProxyBroadcastReceiver(proxy); in testSetCurrentProxyScriptUrl()
180 mPacProxyManager.setCurrentProxyScriptUrl(proxy); in testSetCurrentProxyScriptUrl()
DProxyInfoTest.java59 final ProxyInfo proxy = new ProxyInfo((ProxyInfo) null); in testConstructor() local
60 checkEmpty(proxy); in testConstructor()
62 assertEquals(proxy, new ProxyInfo(proxy)); in testConstructor()
129 private void checkEmpty(ProxyInfo proxy) { in checkEmpty() argument
130 assertNull(proxy.getHost()); in checkEmpty()
131 assertEquals(0, proxy.getPort()); in checkEmpty()
132 assertNull(proxy.getExclusionList()); in checkEmpty()
133 assertEquals(Uri.EMPTY, proxy.getPacFileUrl()); in checkEmpty()
/packages/modules/Scheduling/framework/java/android/scheduling/
DRebootReadinessManager.java311 RebootReadinessCallbackProxy proxy = in addRequestRebootReadinessStatusListener() local
313 mService.addRequestRebootReadinessStatusListener(proxy); in addRequestRebootReadinessStatusListener()
314 mProxyList.put(callback, proxy); in addRequestRebootReadinessStatusListener()
329 RebootReadinessCallbackProxy proxy = mProxyList.get(callback); in removeRequestRebootReadinessStatusListener() local
330 if (proxy != null) { in removeRequestRebootReadinessStatusListener()
331 mService.removeRequestRebootReadinessStatusListener(proxy); in removeRequestRebootReadinessStatusListener()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DTransformParams.java125 public TransformParams setBaseBuilderProxy(BuilderProxy proxy) { in setBaseBuilderProxy() argument
126 mBaseBuilderProxy = proxy; in setBaseBuilderProxy()
134 public TransformParams setHomeBuilderProxy(BuilderProxy proxy) { in setHomeBuilderProxy() argument
135 mHomeBuilderProxy = proxy; in setHomeBuilderProxy()
140 public SurfaceTransaction createSurfaceParams(BuilderProxy proxy) { in createSurfaceParams() argument
168 proxy.onBuildTargetParams(builder, app, this); in createSurfaceParams()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadCache.java129 TaskProxy proxy = new TaskProxy(); in download() local
145 task.addProxy(proxy); in download()
148 return proxy.get(jc); in download()
269 public void removeProxy(TaskProxy proxy) { in removeProxy() argument
271 Utils.assertTrue(mProxySet.remove(proxy)); in removeProxy()
280 public void addProxy(TaskProxy proxy) { in addProxy() argument
281 proxy.mTask = this; in addProxy()
282 mProxySet.add(proxy); in addProxy()
306 for (TaskProxy proxy : mProxySet) { in onFutureDone()
307 proxy.setResult(entry); in onFutureDone()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DOpUsageLiveData.kt89 val proxy = attributedOpEntry.getLastProxyInfo(OP_FLAGS_ALL_TRUSTED) in loadDataAndPostValue() constant
91 if (proxy != null && proxy.packageName != null) { in loadDataAndPostValue()
92 proxyAccess = OpAccess(proxy.packageName!!, proxy.attributionTag, in loadDataAndPostValue()
93 UserHandle.getUserHandleForUid(proxy.uid), accessTime) in loadDataAndPostValue()
/packages/modules/Connectivity/framework-t/src/android/net/
DEthernetManager.java495 final NetworkInterfaceOutcomeReceiver proxy; in makeNetworkInterfaceOutcomeReceiver() local
497 proxy = null; in makeNetworkInterfaceOutcomeReceiver()
499 proxy = new NetworkInterfaceOutcomeReceiver(executor, callback); in makeNetworkInterfaceOutcomeReceiver()
501 return proxy; in makeNetworkInterfaceOutcomeReceiver()
543 final NetworkInterfaceOutcomeReceiver proxy = makeNetworkInterfaceOutcomeReceiver( in updateConfiguration() local
546 mService.updateConfiguration(iface, request, proxy); in updateConfiguration()
579 final NetworkInterfaceOutcomeReceiver proxy = makeNetworkInterfaceOutcomeReceiver( in enableInterface() local
582 mService.enableInterface(iface, proxy); in enableInterface()
615 final NetworkInterfaceOutcomeReceiver proxy = makeNetworkInterfaceOutcomeReceiver( in disableInterface() local
618 mService.disableInterface(iface, proxy); in disableInterface()
/packages/modules/Bluetooth/framework/tests/stress/src/android/bluetooth/
DBluetoothTestUtils.java356 public void onServiceConnected(int profile, BluetoothProfile proxy) {
360 mA2dp = (BluetoothA2dp) proxy;
363 mHeadset = (BluetoothHeadset) proxy;
366 mInput = (BluetoothHidHost) proxy;
369 mPan = (BluetoothPan) proxy;
372 mMce = (BluetoothMapClient) proxy;
993 BluetoothProfile proxy = connectProxy(adapter, profile); in connectProfile() local
994 assertNotNull(proxy); in connectProfile()
998 int state = proxy.getConnectionState(device); in connectProfile()
1010 assertTrue(((BluetoothA2dp) proxy).connect(device)); in connectProfile()
[all …]
/packages/apps/Settings/src/com/android/settings/
DProxySelector.java67 mView = inflater.inflate(R.layout.proxy, container, false); in onCreateView()
152 ProxyInfo proxy = cm.getGlobalProxy(); in populateFields() local
153 if (proxy != null) { in populateFields()
154 hostname = proxy.getHost(); in populateFields()
155 port = proxy.getPort(); in populateFields()
156 exclList = ProxyUtils.exclusionListAsString(proxy.getExclusionList()); in populateFields()
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/src/
Dlib.rs194 let proxy = self.create_proxy(); in async_method() localVariable
195 proxy.method_call(self.interface.clone(), member, args).await in async_method()
204 let proxy = self.create_proxy(); in async_method_noreturn() localVariable
205 proxy.method_call(self.interface.clone(), member, args).await in async_method_noreturn()
217 let proxy = self.create_proxy(); in method_withresult() localVariable
220 proxy.method_call(self.interface.clone(), member, args).await in method_withresult()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DBluetoothAdapterProxy.java68 public static void setInstanceForTesting(BluetoothAdapterProxy proxy) { in setInstanceForTesting() argument
71 Log.d(TAG, "setInstanceForTesting(), set to " + proxy); in setInstanceForTesting()
72 sInstance = proxy; in setInstanceForTesting()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppBatchTest.java96 BluetoothMethodProxy proxy = spy(BluetoothMethodProxy.getInstance()); in cancelBatch_cancelSuccessfully() local
97 BluetoothMethodProxy.setInstanceForTesting(proxy); in cancelBatch_cancelSuccessfully()
98 doReturn(0).when(proxy).contentResolverDelete(any(), any(), any(), any()); in cancelBatch_cancelSuccessfully()
99 doReturn(0).when(proxy).contentResolverUpdate(any(), any(), any(), any(), any()); in cancelBatch_cancelSuccessfully()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBluetoothServerProxy.java57 public static void setInstanceForTesting(BluetoothServerProxy proxy) { in setInstanceForTesting() argument
59 Log.d(TAG, "setInstanceForTesting(), set to " + proxy); in setInstanceForTesting()
60 sInstance = proxy; in setInstanceForTesting()
DBluetoothModeChangeHelper.java67 public void onServiceConnected(int profile, BluetoothProfile proxy) {
71 mA2dp = (BluetoothA2dp) proxy;
74 mHearingAid = (BluetoothHearingAid) proxy;
77 mLeAudio = (BluetoothLeAudio) proxy;
/packages/modules/Bluetooth/android/pandora/server/src/com/android/pandora/
DUtils.kt301 var proxy: BluetoothProfile? in getProfileProxy() variable
309 override fun onServiceConnected(profile: Int, proxy: BluetoothProfile) { in getProfileProxy()
310 trySendBlocking(proxy) in getProfileProxy()
319 proxy = withTimeoutOrNull(5_000) { flow.first() } in getProfileProxy()
321 if (proxy == null) { in getProfileProxy()
324 return proxy!! as T in getProfileProxy()

123456