Home
last modified time | relevance | path

Searched refs:nc (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNeighboringCellInfoTest.java32 NeighboringCellInfo nc; in testConstructor() local
34 nc = new NeighboringCellInfo(rssi, "FFFFFFF", NETWORK_TYPE_EDGE); in testConstructor()
35 assertEquals(NETWORK_TYPE_EDGE, nc.getNetworkType()); in testConstructor()
36 assertEquals(rssi, nc.getRssi()); in testConstructor()
37 assertEquals(0xfff, nc.getLac()); in testConstructor()
38 assertEquals(0xffff, nc.getCid()); in testConstructor()
39 assertEquals(NeighboringCellInfo.UNKNOWN_CID, nc.getPsc()); in testConstructor()
41 nc = new NeighboringCellInfo(rssi, "1FF", NETWORK_TYPE_UMTS); in testConstructor()
42 assertEquals(NETWORK_TYPE_UMTS, nc.getNetworkType()); in testConstructor()
43 assertEquals(rssi, nc.getRssi()); in testConstructor()
[all …]
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java84 public NetworkCapabilities(NetworkCapabilities nc) { in NetworkCapabilities() argument
85 if (nc != null) { in NetworkCapabilities()
86 set(nc); in NetworkCapabilities()
114 public void set(@NonNull NetworkCapabilities nc) { in set() argument
115 mNetworkCapabilities = nc.mNetworkCapabilities; in set()
116 mTransportTypes = nc.mTransportTypes; in set()
117 mLinkUpBandwidthKbps = nc.mLinkUpBandwidthKbps; in set()
118 mLinkDownBandwidthKbps = nc.mLinkDownBandwidthKbps; in set()
119 mNetworkSpecifier = nc.mNetworkSpecifier; in set()
120 mTransportInfo = nc.mTransportInfo; in set()
[all …]
DNetworkRequest.java122 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId, Type type) { in NetworkRequest() argument
123 if (nc == null) { in NetworkRequest()
127 networkCapabilities = nc; in NetworkRequest()
168 final NetworkCapabilities nc = new NetworkCapabilities(mNetworkCapabilities); in build() local
169 nc.maybeMarkCapabilitiesRestricted(); in build()
170 return new NetworkRequest(nc, ConnectivityManager.TYPE_NONE, in build()
208 public Builder setCapabilities(NetworkCapabilities nc) { in setCapabilities() argument
209 mNetworkCapabilities.set(nc); in setCapabilities()
387 NetworkCapabilities nc = NetworkCapabilities.CREATOR.createFromParcel(in);
391 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId, type);
[all …]
DNetworkAgent.java327 NetworkCapabilities nc, LinkProperties lp, int score) { in NetworkAgent() argument
328 this(looper, context, logTag, ni, nc, lp, score, null, NetworkProvider.ID_NONE); in NetworkAgent()
334 NetworkCapabilities nc, LinkProperties lp, int score, NetworkAgentConfig config) { in NetworkAgent() argument
335 this(looper, context, logTag, ni, nc, lp, score, config, NetworkProvider.ID_NONE); in NetworkAgent()
341 NetworkCapabilities nc, LinkProperties lp, int score, int providerId) { in NetworkAgent() argument
342 this(looper, context, logTag, ni, nc, lp, score, null, providerId); in NetworkAgent()
348 NetworkCapabilities nc, LinkProperties lp, int score, NetworkAgentConfig config, in NetworkAgent() argument
350 this(looper, context, logTag, nc, lp, score, config, providerId, ni, true /* legacy */); in NetworkAgent()
377 @NonNull NetworkCapabilities nc, @NonNull LinkProperties lp, int score, in NetworkAgent() argument
379 this(looper, context, logTag, nc, lp, score, config, in NetworkAgent()
[all …]
/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java336 NetworkCapabilities nc = new NetworkCapabilities(); in testOemPaid() local
339 assertFalse(nc.hasUnwantedCapability(NET_CAPABILITY_OEM_PAID)); in testOemPaid()
340 assertFalse(nc.hasCapability(NET_CAPABILITY_OEM_PAID)); in testOemPaid()
341 nc.maybeMarkCapabilitiesRestricted(); in testOemPaid()
342 assertTrue(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testOemPaid()
345 nc.addCapability(NET_CAPABILITY_OEM_PAID); in testOemPaid()
346 nc.addCapability(NET_CAPABILITY_INTERNET); // Combine with unrestricted capability. in testOemPaid()
347 nc.maybeMarkCapabilitiesRestricted(); in testOemPaid()
348 assertTrue(nc.hasCapability(NET_CAPABILITY_OEM_PAID)); in testOemPaid()
349 assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testOemPaid()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Disp_az.c48 Word16 nc; in Isp_Az() local
53 nc = (m >> 1); in Isp_Az()
54 if(nc > 8) in Isp_Az()
56 Get_isp_pol_16kHz(&isp[0], f1, nc); in Isp_Az()
57 for (i = 0; i <= nc; i++) in Isp_Az()
62 Get_isp_pol(&isp[0], f1, nc); in Isp_Az()
64 if (nc > 8) in Isp_Az()
66 Get_isp_pol_16kHz(&isp[1], f2, (nc - 1)); in Isp_Az()
67 for (i = 0; i <= nc - 1; i++) in Isp_Az()
72 Get_isp_pol(&isp[1], f2, (nc - 1)); in Isp_Az()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Disp_az.cpp143 int16 nc; in Isp_Az() local
149 nc = m >> 1; in Isp_Az()
152 if (nc > 8) in Isp_Az()
154 Get_isp_pol_16kHz(&isp[0], f1, nc); in Isp_Az()
155 for (i = 0; i <= nc; i++) in Isp_Az()
159 Get_isp_pol_16kHz(&isp[1], f2, nc - 1); in Isp_Az()
160 for (i = 0; i <= nc - 1; i++) in Isp_Az()
167 Get_isp_pol(&isp[0], f1, nc); in Isp_Az()
168 Get_isp_pol(&isp[1], f2, nc - 1); in Isp_Az()
175 for (i = nc - 1; i > 1; i--) in Isp_Az()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java133 NetworkCapabilities nc = createNetworkCapabilities(true /* clear default capabilities */); in EthernetTracker() local
134 mFactory = new EthernetNetworkFactory(handler, context, nc); in EthernetTracker()
185 final NetworkCapabilities nc = mNetworkCapabilities.get(iface); in isRestrictedInterface() local
186 return nc != null && !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in isRestrictedInterface()
298 NetworkCapabilities nc = mNetworkCapabilities.get(iface); in addInterface() local
299 if (nc == null) { in addInterface()
301 nc = mNetworkCapabilities.get(hwAddress); in addInterface()
302 if (nc == null) { in addInterface()
304 nc = createDefaultNetworkCapabilities(isTestIface); in addInterface()
316 mFactory.addInterface(iface, hwAddress, nc, ipConfiguration); in addInterface()
[all …]
/frameworks/base/tests/net/java/android/net/util/
DKeepaliveUtilsTest.kt108 val nc = NetworkCapabilities() in testGetSupportedKeepalivesForNetworkCapabilities() constant
110 nc.transportTypes = intArrayOf(TRANSPORT_CELLULAR) in testGetSupportedKeepalivesForNetworkCapabilities()
111 assertEquals(3, KeepaliveUtils.getSupportedKeepalivesForNetworkCapabilities(cust, nc)) in testGetSupportedKeepalivesForNetworkCapabilities()
114 nc.transportTypes = intArrayOf(TRANSPORT_WIFI, TRANSPORT_VPN) in testGetSupportedKeepalivesForNetworkCapabilities()
115 assertEquals(0, KeepaliveUtils.getSupportedKeepalivesForNetworkCapabilities(cust, nc)) in testGetSupportedKeepalivesForNetworkCapabilities()
118 nc.transportTypes = intArrayOf(TRANSPORT_ETHERNET) in testGetSupportedKeepalivesForNetworkCapabilities()
119 assertEquals(0, KeepaliveUtils.getSupportedKeepalivesForNetworkCapabilities(cust, nc)) in testGetSupportedKeepalivesForNetworkCapabilities()
122 nc.transportTypes = intArrayOf(MAX_TRANSPORT + 1) in testGetSupportedKeepalivesForNetworkCapabilities()
124 KeepaliveUtils.getSupportedKeepalivesForNetworkCapabilities(cust, nc) in testGetSupportedKeepalivesForNetworkCapabilities()
/frameworks/base/rs/java/android/renderscript/
DMatrix3f.java126 float nc = 1.0f - c; in loadRotate() local
133 mMat[0] = x*x*nc + c; in loadRotate()
134 mMat[3] = xy*nc - zs; in loadRotate()
135 mMat[6] = zx*nc + ys; in loadRotate()
136 mMat[1] = xy*nc + zs; in loadRotate()
137 mMat[4] = y*y*nc + c; in loadRotate()
138 mMat[7] = yz*nc - xs; in loadRotate()
139 mMat[2] = zx*nc - ys; in loadRotate()
140 mMat[5] = yz*nc + xs; in loadRotate()
141 mMat[8] = z*z*nc + c; in loadRotate()
DMatrix4f.java171 float nc = 1.0f - c; in loadRotate() local
178 mMat[ 0] = x*x*nc + c; in loadRotate()
179 mMat[ 4] = xy*nc - zs; in loadRotate()
180 mMat[ 8] = zx*nc + ys; in loadRotate()
181 mMat[ 1] = xy*nc + zs; in loadRotate()
182 mMat[ 5] = y*y*nc + c; in loadRotate()
183 mMat[ 9] = yz*nc - xs; in loadRotate()
184 mMat[ 2] = zx*nc - ys; in loadRotate()
185 mMat[ 6] = yz*nc + xs; in loadRotate()
186 mMat[10] = z*z*nc + c; in loadRotate()
/frameworks/rs/support/java/src/androidx/renderscript/
DMatrix3f.java129 float nc = 1.0f - c; in loadRotate() local
136 mMat[0] = x*x*nc + c; in loadRotate()
137 mMat[3] = xy*nc - zs; in loadRotate()
138 mMat[6] = zx*nc + ys; in loadRotate()
139 mMat[1] = xy*nc + zs; in loadRotate()
140 mMat[4] = y*y*nc + c; in loadRotate()
141 mMat[7] = yz*nc - xs; in loadRotate()
142 mMat[2] = zx*nc - ys; in loadRotate()
143 mMat[5] = yz*nc + xs; in loadRotate()
144 mMat[8] = z*z*nc + c; in loadRotate()
DMatrix4f.java172 float nc = 1.0f - c; in loadRotate() local
179 mMat[ 0] = x*x*nc + c; in loadRotate()
180 mMat[ 4] = xy*nc - zs; in loadRotate()
181 mMat[ 8] = zx*nc + ys; in loadRotate()
182 mMat[ 1] = xy*nc + zs; in loadRotate()
183 mMat[ 5] = y*y*nc + c; in loadRotate()
184 mMat[ 9] = yz*nc - xs; in loadRotate()
185 mMat[ 2] = zx*nc - ys; in loadRotate()
186 mMat[ 6] = yz*nc + xs; in loadRotate()
187 mMat[10] = z*z*nc + c; in loadRotate()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dvlc_encode_inline.h23 __inline Int zero_run_search(UInt *bitmapzz, Short *dataBlock, RunLevelBlock *RLB, Int nc) in zero_run_search() argument
32 if (nc > 32) in zero_run_search()
35 end = 1 << (32 - nc); in zero_run_search()
69 nc -= 32; in zero_run_search()
70 if (nc > 0) in zero_run_search()
73 end = 1 << (32 - nc); in zero_run_search()
113 __inline Int zero_run_search(UInt *bitmapzz, Short *dataBlock, RunLevelBlock *RLB, Int nc) in zero_run_search() argument
115 OSCL_UNUSED_ARG(nc); in zero_run_search()
227 __inline Int zero_run_search(UInt *bitmapzz, Short *dataBlock, RunLevelBlock *RLB, Int nc) in zero_run_search() argument
229 OSCL_UNUSED_ARG(nc); in zero_run_search()
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java167 @NonNull NetworkCapabilities nc,
172 super(looper, context, TEST_NETWORK_TYPE, ni, nc, lp, NETWORK_SCORE);
176 mNc = nc;
247 NetworkCapabilities nc = new NetworkCapabilities();
248 nc.clearAll(); // Remove default capabilities.
249 nc.addTransportType(NetworkCapabilities.TRANSPORT_TEST);
250 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED);
251 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED);
252 nc.setNetworkSpecifier(new StringNetworkSpecifier(iface));
253 nc.setAdministratorUids(administratorUids);
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactory.java134 NetworkCapabilities nc = new NetworkCapabilities(); in makeNetworkFilter() local
135 nc.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeNetworkFilter()
136 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in makeNetworkFilter()
137 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in makeNetworkFilter()
138 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in makeNetworkFilter()
139 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in makeNetworkFilter()
140 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in makeNetworkFilter()
141 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in makeNetworkFilter()
142 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in makeNetworkFilter()
143 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_RCS); in makeNetworkFilter()
[all …]
DApnContext.java545 NetworkCapabilities nc = nr.networkCapabilities; in getApnTypeFromNetworkRequest() local
547 if (nc.getTransportTypes().length > 0 && in getApnTypeFromNetworkRequest()
548 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in getApnTypeFromNetworkRequest()
557 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in getApnTypeFromNetworkRequest()
560 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in getApnTypeFromNetworkRequest()
564 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in getApnTypeFromNetworkRequest()
568 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in getApnTypeFromNetworkRequest()
572 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in getApnTypeFromNetworkRequest()
576 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in getApnTypeFromNetworkRequest()
580 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in getApnTypeFromNetworkRequest()
[all …]
/frameworks/av/tools/resampler_tools/
Dfir.cpp93 int nc = 32; in main() local
198 nc = 16; in main()
248 printf("const int32_t RESAMPLE_FIR_COEF_BITS = %d;\n", nc); in main()
268 int64_t yi = toint(y, 1ULL<<(nc-1)); in main()
269 if (nc > 16) { in main()
294 int64_t yi = toint(y, 1ULL<<(nc-1)); in main()
295 if (nc > 16) { in main()
/frameworks/base/tests/net/java/android/net/
DConnectivityManagerTest.java86 final NetworkCapabilities nc = ConnectivityManager.networkCapabilitiesForType(legacyType); in verifyNetworkCapabilities() local
87 assertNotNull(nc); in verifyNetworkCapabilities()
88 assertTrue(nc.hasTransport(transportType)); in verifyNetworkCapabilities()
90 assertTrue(nc.hasCapability(capability)); in verifyNetworkCapabilities()
93 return nc; in verifyNetworkCapabilities()
107 final NetworkCapabilities nc = verifyNetworkCapabilities( in verifyRestrictedMobileNetworkCapabilities() local
114 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in verifyRestrictedMobileNetworkCapabilities()
115 assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in verifyRestrictedMobileNetworkCapabilities()
156 final NetworkCapabilities nc = verifyNetworkCapabilities( in testNetworkCapabilitiesForTypeMobileMms() local
163 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileMms()
[all …]
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java271 private final NetworkCapabilities nc = new NetworkCapabilities(); field in EthernetTrackerTest.NetworkCapabilitiesBuilder
277 nc.clearAll(); in clearAll()
282 nc.addCapability(capability); in addCapability()
287 nc.addTransportType(transport); in addTransport()
292 nc.setLinkUpstreamBandwidthKbps(upKbps); in setLinkUpstreamBandwidthKbps()
297 nc.setLinkDownstreamBandwidthKbps(downKbps); in setLinkDownstreamBandwidthKbps()
302 return new NetworkCapabilities(nc); in build()
/frameworks/rs/
DrsMatrix4x4.cpp220 const float nc = 1.0f - c; in loadRotate() local
227 m[ 0] = x*x*nc + c; in loadRotate()
228 m[ 4] = xy*nc - zs; in loadRotate()
229 m[ 8] = zx*nc + ys; in loadRotate()
230 m[ 1] = xy*nc + zs; in loadRotate()
231 m[ 5] = y*y*nc + c; in loadRotate()
232 m[ 9] = yz*nc - xs; in loadRotate()
233 m[ 2] = zx*nc - ys; in loadRotate()
234 m[ 6] = yz*nc + xs; in loadRotate()
235 m[10] = z*z*nc + c; in loadRotate()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java197 public MultipathTracker(Network network, NetworkCapabilities nc) { in MultipathTracker() argument
199 this.mNetworkCapabilities = new NetworkCapabilities(nc); in MultipathTracker()
200 NetworkSpecifier specifier = nc.getNetworkSpecifier(); in MultipathTracker()
207 network, nc)); in MultipathTracker()
237 public void setNetworkCapabilities(NetworkCapabilities nc) { in setNetworkCapabilities() argument
238 mNetworkCapabilities = new NetworkCapabilities(nc); in setNetworkCapabilities()
264 private NetworkIdentity getTemplateMatchingNetworkIdentity(NetworkCapabilities nc) { in getTemplateMatchingNetworkIdentity() argument
270 !nc.hasCapability(NET_CAPABILITY_NOT_ROAMING), in getTemplateMatchingNetworkIdentity()
271 !nc.hasCapability(NET_CAPABILITY_NOT_METERED), in getTemplateMatchingNetworkIdentity()
454 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { in registerTrackMobileCallback()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorListView.kt162 val nc = channel ?: return in updateViews() constant
164 channelName.text = nc.name ?: "" in updateViews()
166 nc.group?.let { groupId -> in updateViews()
170 if (nc.group == null || TextUtils.isEmpty(channelDescription.text)) { in updateViews()
176 switch.isChecked = nc.importance != IMPORTANCE_NONE in updateViews()
/frameworks/base/services/net/java/android/net/
DNetworkMonitorManager.java150 public boolean notifyNetworkConnected(LinkProperties lp, NetworkCapabilities nc) { in notifyNetworkConnected() argument
153 mNetworkMonitor.notifyNetworkConnected(lp, nc); in notifyNetworkConnected()
189 public boolean notifyNetworkCapabilitiesChanged(NetworkCapabilities nc) { in notifyNetworkCapabilitiesChanged() argument
192 mNetworkMonitor.notifyNetworkCapabilitiesChanged(nc); in notifyNetworkCapabilitiesChanged()
/frameworks/layoutlib/bridge/src/android/graphics/
DRoundRectangle.java338 int nc = 0; in getPathIterator() local
341 coords[nc++] = (float) (x + ctrls[i] * width + ctrls[i + 1] / 2d); in getPathIterator()
342 coords[nc++] = (float) (y + ctrls[i + 2] * height + ctrls[i + 3] / 2d); in getPathIterator()
345 at.transform(coords, 0, coords, 0, nc / 2); in getPathIterator()
355 int nc = 0; in getPathIterator() local
358 coords[nc++] = x + ctrls[i] * width + ctrls[i + 1] / 2d; in getPathIterator()
359 coords[nc++] = y + ctrls[i + 2] * height + ctrls[i + 3] / 2d; in getPathIterator()
362 at.transform(coords, 0, coords, 0, nc / 2); in getPathIterator()

123