Home
last modified time | relevance | path

Searched refs:ni (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java156 NetworkInfo ni = mCm.getNetworkInfo(networkType); in waitForNetworkState() local
157 if (ni != null && expectedState.equals(ni.getState())) { in waitForNetworkState()
158 logv("waitForNetworkState success: %s", ni); in waitForNetworkState()
162 logv("waitForNetworkState timeout: %s", ni); in waitForNetworkState()
165 logv("waitForNetworkState interim: %s", ni); in waitForNetworkState()
417 NetworkInfo ni = mCm.getActiveNetworkInfo(); in waitForActiveNetworkConnection() local
418 if (ni != null && ni.isConnected()) { in waitForActiveNetworkConnection()
422 logv("waitForActiveNetworkConnection timeout: %s", ni); in waitForActiveNetworkConnection()
425 logv("waitForActiveNetworkConnection interim: %s", ni); in waitForActiveNetworkConnection()
433 NetworkInfo ni = mCm.getActiveNetworkInfo(); in waitUntilNoActiveNetworkConnection() local
[all …]
/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareNetworkInfo.java113 NetworkInterface ni = mIpv6Addr.getScopedInterface(); in writeToParcel() local
114 dest.writeString(ni == null ? null : ni.getName()); in writeToParcel()
129 NetworkInterface ni = null;
132 ni = NetworkInterface.getByName(interfaceName);
137 ipv6Addr = Inet6Address.getByAddress(null, addr, ni);
/frameworks/base/tests/JankBench/app/src/main/jni/
DBench.cpp237 size_t ni = rand() * rand(); in runMemoryLatencyTest() local
238 ni = ni % maxIndex; in runMemoryLatencyTest()
239 while ((sp[ni] != NULL) || (ni == lastIdx)) { in runMemoryLatencyTest()
240 ni++; in runMemoryLatencyTest()
241 if (ni >= maxIndex) { in runMemoryLatencyTest()
242 ni = 1; in runMemoryLatencyTest()
247 sp[lastIdx] = &sp[ni]; in runMemoryLatencyTest()
248 lastIdx = ni; in runMemoryLatencyTest()
/frameworks/base/core/java/android/net/
DNetworkAgent.java326 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() argument
328 this(looper, context, logTag, ni, nc, lp, score, null, NetworkProvider.ID_NONE); in NetworkAgent()
333 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() argument
335 this(looper, context, logTag, ni, nc, lp, score, config, NetworkProvider.ID_NONE); in NetworkAgent()
340 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() argument
342 this(looper, context, logTag, ni, nc, lp, score, null, providerId); in NetworkAgent()
347 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() argument
350 this(looper, context, logTag, nc, lp, score, config, providerId, ni, true /* legacy */); in NetworkAgent()
357 final NetworkInfo ni = new NetworkInfo(config.legacyType, config.legacyType, in getLegacyNetworkInfo() local
359 ni.setIsAvailable(true); in getLegacyNetworkInfo()
[all …]
/frameworks/base/graphics/java/android/graphics/
DRegion.java357 long ni = nativeCreateFromParcel(p);
358 if (ni == 0) {
361 return new Region(ni);
405 Region(long ni) { in Region() argument
406 if (ni == 0) { in Region()
409 mNativeRegion = ni; in Region()
415 private Region(long ni, int unused) { in Region() argument
416 this(ni); in Region()
419 final long ni() { in ni() method in Region
DTableMaskFilter.java33 private TableMaskFilter(long ni) { in TableMaskFilter() argument
34 native_instance = ni; in TableMaskFilter()
DPicture.java112 long ni = nativeBeginRecording(mNativePicture, width, height); in beginRecording() local
113 mRecordingCanvas = new PictureCanvas(this, ni); in beginRecording()
DTypeface.java843 final long ni = family.native_instance;
847 SparseArray<Typeface> styles = sStyledTypefaceCache.get(ni);
851 sStyledTypefaceCache.put(ni, styles);
859 typeface = new Typeface(nativeCreateFromTypeface(ni, style));
1090 private Typeface(long ni) {
1091 if (ni == 0) {
1095 native_instance = ni;
1097 mStyle = nativeGetStyle(ni);
1098 mWeight = nativeGetWeight(ni);
DRegionIterator.java29 mNativeIter = nativeConstructor(region.ni()); in RegionIterator()
DPath.java241 FillType(int ni) { in FillType() argument
242 nativeInt = ni; in FillType()
526 Direction(int ni) { in Direction() argument
527 nativeInt = ni; in Direction()
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java166 @NonNull NetworkInfo ni,
172 super(looper, context, TEST_NETWORK_TYPE, ni, nc, lp, NETWORK_SCORE);
175 mNi = ni;
242 NetworkInfo ni = new NetworkInfo(ConnectivityManager.TYPE_TEST, 0, TEST_NETWORK_TYPE, "");
243 ni.setDetailedState(DetailedState.CONNECTED, null, null);
244 ni.setIsAvailable(true);
293 return new TestNetworkAgent(looper, context, ni, nc, lp, callingUid, binder);
/frameworks/base/telephony/java/com/android/internal/telephony/
DNetworkScanResult.java85 List<CellInfo> ni = new ArrayList<>(); in NetworkScanResult() local
86 in.readParcelableList(ni, Object.class.getClassLoader()); in NetworkScanResult()
87 networkInfos = ni; in NetworkScanResult()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java157 final NetworkInfo ni = connectivityManager.getNetworkInfo(network); in forceRefresh() local
158 if (ni == null || !ni.isConnected()) { in forceRefresh()
/frameworks/base/core/java/android/view/
DRenderNodeAnimator.java173 long ni; in applyInterpolator() local
175 ni = ((NativeInterpolatorFactory)mInterpolator).createNativeInterpolator(); in applyInterpolator()
178 ni = FallbackLUTInterpolator.createNativeInterpolator(mInterpolator, duration); in applyInterpolator()
180 nSetInterpolator(mNativePtr.get(), ni); in applyInterpolator() local
/frameworks/base/cmds/incident_helper/tests/
DPsParser_test.cpp271 if (g.ni() != e.ni()) { in TEST_F()
272 fprintf(stderr, "prcs[%d]: Invalid ni. Got %d, want %d\n", i, g.ni(), e.ni()); in TEST_F()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiStressTest.java259 NetworkInfo ni = mCm.getActiveNetworkInfo(); in testWifiReconnectionAfterSleep() local
260 if (ni != null) { in testWifiReconnectionAfterSleep()
261 Log.e(mLogTag, "has active network while in wifi sleep: " + ni.toString()); in testWifiReconnectionAfterSleep()
/frameworks/compile/slang/tests/P_reduce_general_inputs/
DScriptField_MyStruct.java.expect193 Item ni[] = new Item[newSize];
194 System.arraycopy(mItemArray, 0, ni, 0, copySize);
195 mItemArray = ni;
/frameworks/compile/slang/tests/P_reduce_general_result/
DScriptField_MyStruct.java.expect193 Item ni[] = new Item[newSize];
194 System.arraycopy(mItemArray, 0, ni, 0, copySize);
195 mItemArray = ni;
/frameworks/compile/slang/tests/P_reduce_general_input/
DScriptField_MyStruct.java.expect193 Item ni[] = new Item[newSize];
194 System.arraycopy(mItemArray, 0, ni, 0, copySize);
195 mItemArray = ni;
/frameworks/compile/slang/tests/P_reflection3264_divergent/
DScriptField_NonDivergent.java.expect191 Item ni[] = new Item[newSize];
192 System.arraycopy(mItemArray, 0, ni, 0, copySize);
193 mItemArray = ni;
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DConnectivityManagerMobileTest.java92 NetworkInfo ni = mCm.getActiveNetworkInfo(); in test3GToWifiNotification() local
93 assertEquals("active network is not mobile", ConnectivityManager.TYPE_MOBILE, ni.getType()); in test3GToWifiNotification()
/frameworks/base/core/proto/android/os/
Dcpuinfo.proto26 * 'top -b -n 1 -H -s 6 -o pid,tid,user,pr,ni,%cpu,s,virt,res,pcy,cmd,name'
79 optional sint32 ni = 5; // niceness value field
/frameworks/compile/slang/tests/P_struct_field/
DScriptField_InnerTwo.java.expect201 Item ni[] = new Item[newSize];
202 System.arraycopy(mItemArray, 0, ni, 0, copySize);
203 mItemArray = ni;
DScriptField_InnerOne.java.expect214 Item ni[] = new Item[newSize];
215 System.arraycopy(mItemArray, 0, ni, 0, copySize);
216 mItemArray = ni;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java86 DcNetworkAgent(DataConnection dc, Phone phone, NetworkInfo ni, int score, in DcNetworkAgent() argument
98 mNetworkInfo = new NetworkInfo(ni); in DcNetworkAgent()
99 setLegacyExtraInfo(ni.getExtraInfo()); in DcNetworkAgent()

12