Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 95) sorted by relevance

1234

/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp290 { 16071042ns, {{269.786346, 106.922775}} }, in TEST_F()
291 { 35648403ns, {{267.983063, 156.660034}} }, in TEST_F()
292 { 52313925ns, {{262.638397, 220.339081}} }, in TEST_F()
293 { 68976522ns, {{266.138824, 331.581116}} }, in TEST_F()
294 { 85639375ns, {{274.79245, 428.113159}} }, in TEST_F()
295 { 96948871ns, {{274.79245, 428.113159}} }, in TEST_F()
296 { 96948871ns, {{274.79245, 428.113159}} }, // ACTION_UP in TEST_F()
322 { 235089067457000ns, {{528.00, 983.00}} }, in TEST_F()
323 { 235089084684000ns, {{527.00, 981.00}} }, in TEST_F()
324 { 235089093349000ns, {{527.00, 977.00}} }, in TEST_F()
[all …]
/frameworks/rs/tests/java_api/Refocus/dataExtraction/
DN5.txt9 …9:27:06.465 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 7692709 ns
10 …209 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 744708645 ns
15 …7:07.387 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 4345677 ns
16 …com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 398907448 ns
17 ….xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 975083853 ns
18 …-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 28282761 ns
19 …/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 1041012239 ns
24 …7:10.008 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 4137918 ns
25 …com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 213465573 ns
26 ….xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 786876041 ns
[all …]
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DTetheringInterfaceUtils.java42 public static @Nullable InterfaceSet getTetheringInterfaces(UpstreamNetworkState ns) { in getTetheringInterfaces() argument
43 if (ns == null) { in getTetheringInterfaces()
47 final LinkProperties lp = ns.linkProperties; in getTetheringInterfaces()
49 final String if6 = getIPv6Interface(ns); in getTetheringInterfaces()
58 public static @Nullable String getIPv6Interface(UpstreamNetworkState ns) { in getIPv6Interface() argument
74 (ns != null) && (ns.network != null) in getIPv6Interface()
75 && (ns.linkProperties != null) && (ns.networkCapabilities != null) in getIPv6Interface()
77 && ns.linkProperties.hasIpv6DnsServer() in getIPv6Interface()
79 && ns.linkProperties.hasGlobalIpv6Address() in getIPv6Interface()
81 && ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
[all …]
DUpstreamNetworkMonitor.java296 return typeStatePair.ns; in selectPreferredUpstreamType()
508 public UpstreamNetworkState ns = null; field in UpstreamNetworkMonitor.TypeStatePair
534 result.ns = value; in findFirstAvailableUpstreamByType()
545 for (UpstreamNetworkState ns : netStates) { in allLocalPrefixes()
546 final LinkProperties lp = ns.linkProperties; in allLocalPrefixes()
554 private static boolean isCellular(UpstreamNetworkState ns) { in isCellular() argument
555 return (ns != null) && isCellular(ns.networkCapabilities); in isCellular()
563 private static boolean hasCapability(UpstreamNetworkState ns, int netCap) { in hasCapability() argument
564 return (ns != null) && (ns.networkCapabilities != null) in hasCapability()
565 && ns.networkCapabilities.hasCapability(netCap); in hasCapability()
[all …]
DIPv6TetheringCoordinator.java122 public void updateUpstreamNetworkState(UpstreamNetworkState ns) { in updateUpstreamNetworkState() argument
124 Log.d(TAG, "updateUpstreamNetworkState: " + toDebugString(ns)); in updateUpstreamNetworkState()
126 if (TetheringInterfaceUtils.getIPv6Interface(ns) == null) { in updateUpstreamNetworkState()
133 && !ns.network.equals(mUpstreamNetworkState.network)) { in updateUpstreamNetworkState()
137 setUpstreamNetworkState(ns); in updateUpstreamNetworkState()
147 private void setUpstreamNetworkState(UpstreamNetworkState ns) { in setUpstreamNetworkState() argument
148 if (ns == null) { in setUpstreamNetworkState()
153 new LinkProperties(ns.linkProperties), in setUpstreamNetworkState()
154 new NetworkCapabilities(ns.networkCapabilities), in setUpstreamNetworkState()
155 new Network(ns.network)); in setUpstreamNetworkState()
[all …]
/frameworks/av/media/libnbaio/
DMonoPipe.cpp91 uint32_t ns; in write() local
103 ns = written * ( 500000000 / Format_sampleRate(mFormat)); in write()
106 ns = written * ( 750000000 / Format_sampleRate(mFormat)); in write()
109 ns = written * (1000000000 / Format_sampleRate(mFormat)); in write()
112 ns = written * (1150000000 / Format_sampleRate(mFormat)); in write()
115 ns = written * (1350000000 / Format_sampleRate(mFormat)); in write()
118 ns = written * (1750000000 / Format_sampleRate(mFormat)); in write()
121 ns = count * (1350000000 / Format_sampleRate(mFormat)); in write()
123 if (ns > 999999999) { in write()
124 ns = 999999999; in write()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkAgentSpecifier.java125 public boolean satisfiesNetworkSpecifier(@NonNull WifiNetworkSpecifier ns) { in satisfiesNetworkSpecifier() argument
129 checkNotNull(ns); in satisfiesNetworkSpecifier()
130 checkNotNull(ns.ssidPatternMatcher); in satisfiesNetworkSpecifier()
131 checkNotNull(ns.bssidPatternMatcher); in satisfiesNetworkSpecifier()
132 checkNotNull(ns.wifiConfiguration.allowedKeyManagement); in satisfiesNetworkSpecifier()
140 if (!ns.ssidPatternMatcher.match(ssidWithoutQuotes)) { in satisfiesNetworkSpecifier()
144 final MacAddress matchBaseAddress = ns.bssidPatternMatcher.first; in satisfiesNetworkSpecifier()
145 final MacAddress matchMask = ns.bssidPatternMatcher.second; in satisfiesNetworkSpecifier()
149 if (!ns.wifiConfiguration.allowedKeyManagement.equals( in satisfiesNetworkSpecifier()
153 if (ns.requestorUid != this.mOriginalRequestorUid) { in satisfiesNetworkSpecifier()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java1190 void updateToSupportNewRequest(NetworkRequest ns) { in updateToSupportNewRequest() argument
1191 if (VDBG) Log.v(TAG, "updateToSupportNewRequest: ns=" + ns); in updateToSupportNewRequest()
1192 if (equivalentRequests.add(ns) && state == STATE_CONFIRMED) { in updateToSupportNewRequest()
1202 void removeSupportForRequest(NetworkRequest ns) { in removeSupportForRequest() argument
1203 if (VDBG) Log.v(TAG, "removeSupportForRequest: ns=" + ns); in removeSupportForRequest()
1204 equivalentRequests.remove(ns); in removeSupportForRequest()
1233 WifiAwareNetworkSpecifier ns, WifiAwareStateManager mgr, in processNetworkSpecifier() argument
1238 byte[] peerMac = ns.peerMac; in processNetworkSpecifier()
1241 Log.v(TAG, "processNetworkSpecifier: networkSpecifier=" + ns); in processNetworkSpecifier()
1245 if (ns.type < 0 in processNetworkSpecifier()
[all …]
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp82 bool ThreadCpuUsage::sampleAndEnable(double& ns) in sampleAndEnable() argument
87 return sample(ns); in sampleAndEnable()
90 ns = (double) mAccumulator; in sampleAndEnable()
92 ALOGV("sampleAndEnable %.0f", ns); in sampleAndEnable()
96 ns = 0.0; in sampleAndEnable()
102 bool ThreadCpuUsage::sample(double &ns) in sample() argument
111 ns = 0.0; in sample()
122 ns = (double) mAccumulator; in sample()
123 ALOGV("sample %.0f", ns); in sample()
128 ns = 0.0; in sample()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dclock_ns.h28 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockNs() local
29 return ns; in GetSystemClockNs()
34 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockRawNs() local
35 return ns; in GetSystemClockRawNs()
48 static inline timespec NsToTimespec(int64_t ns) { in NsToTimespec() argument
52 t.tv_sec = ns / kNanosPerSecond; in NsToTimespec()
53 remainder = ns % kNanosPerSecond; in NsToTimespec()
/frameworks/base/tools/bit/
Daapt.cpp45 string ns; member
52 string ns; member
67 string GetAttr(const string& ns, const string& name) const;
68 void FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse);
85 Element::GetAttr(const string& ns, const string& name) const in GetAttr() argument
90 if (attr.ns == ns && attr.name == name) { in GetAttr()
98 Element::FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse) in FindElements() argument
103 if (child->ns == ns && child->name == name) { in FindElements()
107 child->FindElements(ns, name, result, recurse); in FindElements()
200 element->ns = scope->namespaces[string(str, 0, colon)]; in inspect_apk()
[all …]
/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareAgentNetworkSpecifier.java54 public WifiAwareAgentNetworkSpecifier(WifiAwareNetworkSpecifier ns) { in WifiAwareAgentNetworkSpecifier() argument
56 mNetworkSpecifiers.add(convert(ns)); in WifiAwareAgentNetworkSpecifier()
61 for (WifiAwareNetworkSpecifier ns : nss) { in WifiAwareAgentNetworkSpecifier()
62 mNetworkSpecifiers.add(convert(ns)); in WifiAwareAgentNetworkSpecifier()
140 public boolean satisfiesAwareNetworkSpecifier(WifiAwareNetworkSpecifier ns) { in satisfiesAwareNetworkSpecifier() argument
141 if (VDBG) Log.v(TAG, "satisfiesAwareNetworkSpecifier: ns=" + ns); in satisfiesAwareNetworkSpecifier()
142 ByteArrayWrapper nsBytes = convert(ns); in satisfiesAwareNetworkSpecifier()
160 private ByteArrayWrapper convert(WifiAwareNetworkSpecifier ns) { in convert() argument
166 ns.writeToParcel(parcel, 0); in convert()
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DStackOverflowXmlParser.java33 private static final String ns = null; field in StackOverflowXmlParser
52 parser.require(XmlPullParser.START_TAG, ns, "feed"); in readFeed()
86 parser.require(XmlPullParser.START_TAG, ns, "entry"); in readEntry()
110 parser.require(XmlPullParser.START_TAG, ns, "title"); in readTitle()
112 parser.require(XmlPullParser.END_TAG, ns, "title"); in readTitle()
119 parser.require(XmlPullParser.START_TAG, ns, "link"); in readLink()
128 parser.require(XmlPullParser.END_TAG, ns, "link"); in readLink()
134 parser.require(XmlPullParser.START_TAG, ns, "summary"); in readSummary()
136 parser.require(XmlPullParser.END_TAG, ns, "summary"); in readSummary()
/frameworks/native/opengl/libs/EGL/
DLoader.cpp195 android_namespace_t* ns = android::GraphicsEnv::getInstance().getAngleNamespace(); in should_unload_system_driver() local
196 if (ns) { in should_unload_system_driver()
202 ns = android::GraphicsEnv::getInstance().getDriverNamespace(); in should_unload_system_driver()
203 if (ns) { in should_unload_system_driver()
529 static void* load_angle_from_namespace(const char* kind, android_namespace_t* ns) { in load_angle_from_namespace() argument
532 .library_namespace = ns, in load_angle_from_namespace()
549 static void* load_angle(const char* kind, android_namespace_t* ns, egl_connection_t* cnx) { in load_angle() argument
553 so = load_angle_from_namespace(kind, ns); in load_angle()
612 static void* load_updated_driver(const char* kind, android_namespace_t* ns) { in load_updated_driver() argument
616 .library_namespace = ns, in load_updated_driver()
[all …]
/frameworks/base/tools/aapt/
DXMLNode.cpp247 const char16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString() local
248 if (ns == NULL) { in parseStyledString()
249 ns = (const char16_t*)"\0\0"; in parseStyledString()
252 const String8 nspace(String16(ns, nslen)); in parseStyledString()
304 const char16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString() local
305 if (ns == NULL) { in parseStyledString()
306 ns = (const char16_t*)"\0\0"; in parseStyledString()
309 const String8 nspace(String16(ns, nslen)); in parseStyledString()
418 const char16_t* ns) in build_namespace() argument
421 if (ns != NULL) { in build_namespace()
[all …]
DXMLNode.h50 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { in newElement() argument
51 return new XMLNode(filename, ns, name, false); in newElement()
89 String16 ns; member
100 const attribute_entry* getAttribute(const String16& ns, const String16& name) const;
101 bool removeAttribute(const String16& ns, const String16& name);
103 attribute_entry* editAttribute(const String16& ns, const String16& name);
120 status_t addAttribute(const String16& ns, const String16& name,
DAaptXml.h37 android::String8 getAttribute(const android::ResXMLTree& tree, const char* ns,
53 int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns,
61 inline int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns, in getIntegerAttribute() argument
63 return getIntegerAttribute(tree, ns, attr, -1, outError); in getIntegerAttribute()
/frameworks/base/media/java/android/media/audiofx/
DNoiseSuppressor.java64 NoiseSuppressor ns = null; in create() local
66 ns = new NoiseSuppressor(audioSession); in create()
68 Log.w(TAG, "not implemented on this device "+ns); in create()
74 return ns; in create()
/frameworks/av/services/audioflinger/
DTypedLogger.h106 #define LOG_OVERRUN(ns) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \ argument
107 x->log<NBLog::EVENT_OVERRUN>(ns); } while (0)
118 #define LOG_UNDERRUN(ns) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \ argument
119 x->log<NBLog::EVENT_UNDERRUN>(ns); } while (0)
127 #define LOG_WORK_TIME(ns) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \ argument
128 x->log<NBLog::EVENT_WORK_TIME>(ns); } while (0)
/frameworks/av/media/libmedia/docs/
Dpaused.dot66 threadLoop_5 [label="ns = processAudioBuffer()"];
68 threadLoop_6 [label="case ns"];
74 threadLoop_6_default [label="if (ns < 0)"];
78 …hreadLoop_6_default_false [label="pauseInternal(ns) [wake()-able]\nmPausedInternal = true\nmPaused…
82 threadLoop_6_NS_WHENEVER [label="ns = 1s"];
/frameworks/base/tests/net/common/java/android/net/
DNetworkSpecifierTest.kt48 val ns: TestNetworkSpecifier = TestNetworkSpecifier() in canBeSatisfiedBy() constant
49 val redactNs = ns.redact() in canBeSatisfiedBy()
51 assertEquals(ns.intData, redactNs.intData) in canBeSatisfiedBy()
52 assertNotEquals(ns.stringData, redactNs.stringData) in canBeSatisfiedBy()
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java364 final NsdServiceInfo ns; in handleMessage() local
367 ns = mServiceMap.get(key); in handleMessage()
374 Log.d(TAG, "received " + nameOf(what) + " for key " + key + ", service " + ns); in handleMessage()
383 ((DiscoveryListener) listener).onStartDiscoveryFailed(getNsdServiceInfoType(ns), in handleMessage()
396 ((DiscoveryListener) listener).onStopDiscoveryFailed(getNsdServiceInfoType(ns), in handleMessage()
401 ((DiscoveryListener) listener).onDiscoveryStopped(getNsdServiceInfoType(ns)); in handleMessage()
405 ((RegistrationListener) listener).onRegistrationFailed(ns, message.arg1); in handleMessage()
413 ((RegistrationListener) listener).onUnregistrationFailed(ns, message.arg1); in handleMessage()
419 ((RegistrationListener) listener).onServiceUnregistered(ns); in handleMessage()
423 ((ResolveListener) listener).onResolveFailed(ns, message.arg1); in handleMessage()
/frameworks/base/tools/aapt2/xml/
DXmlDom.h100 Attribute* FindAttribute(const android::StringPiece& ns, const android::StringPiece& name);
101 const Attribute* FindAttribute(const android::StringPiece& ns,
103 Attribute* FindOrCreateAttribute(const android::StringPiece& ns,
105 void RemoveAttribute(const android::StringPiece& ns,
108 Element* FindChild(const android::StringPiece& ns, const android::StringPiece& name);
109 const Element* FindChild(const android::StringPiece& ns, const android::StringPiece& name) const;
111 Element* FindChildWithAttribute(const android::StringPiece& ns, const android::StringPiece& name,
116 const Element* FindChildWithAttribute(const android::StringPiece& ns,
DXmlDom.cpp417 Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) { in FindAttribute() argument
418 return const_cast<Attribute*>(static_cast<const Element*>(this)->FindAttribute(ns, name)); in FindAttribute()
421 const Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) const { in FindAttribute() argument
423 if (ns == attr.namespace_uri && name == attr.name) { in FindAttribute()
430 void Element::RemoveAttribute(const StringPiece& ns, const StringPiece& name) { in RemoveAttribute() argument
433 return ns == attr.namespace_uri && name == attr.name; in RemoveAttribute()
439 Attribute* Element::FindOrCreateAttribute(const StringPiece& ns, const StringPiece& name) { in FindOrCreateAttribute() argument
440 Attribute* attr = FindAttribute(ns, name); in FindOrCreateAttribute()
442 attributes.push_back(Attribute{ns.to_string(), name.to_string()}); in FindOrCreateAttribute()
448 Element* Element::FindChild(const StringPiece& ns, const StringPiece& name) { in FindChild() argument
[all …]
/frameworks/av/media/libwatchdog/
DWatchdog.cpp45 auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(timeout); in Watchdog() local
47 spec.it_value.tv_sec = ns.count() / 1000000000; in Watchdog()
48 spec.it_value.tv_nsec = ns.count() % 1000000000; in Watchdog()

1234