Home
last modified time | relevance | path

Searched refs:userAgent (Results 1 – 25 of 143) sorted by relevance

123456

/external/chromium_org/third_party/WebKit/Source/web/tests/
DFrameLoaderClientImplTest.cpp60 void setUserAgentOverride(const WebString& userAgent) in setUserAgentOverride() argument
62 m_userAgentOverride = userAgent; in setUserAgentOverride()
88 void setUserAgentOverride(const WebString& userAgent) in setUserAgentOverride() argument
90 return m_webFrameClient.setUserAgentOverride(userAgent); in setUserAgentOverride()
93 const WebString userAgent() in userAgent() function in __anon8c8043b00111::FrameLoaderClientImplTest
97 WTF::CString userAgent = m_frameLoaderClientImpl->userAgent(dummyURL).utf8(); in userAgent() local
98 return WebString::fromUTF8(userAgent.data(), userAgent.length()); in userAgent()
110 const WebString defaultUserAgent = userAgent(); in TEST_F()
115 EXPECT_TRUE(override.equals(userAgent())); in TEST_F()
119 EXPECT_TRUE(defaultUserAgent.equals(userAgent())); in TEST_F()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DUserAgentParser.java50 public UserAgentParser(String userAgent) { in UserAgentParser() argument
51 super(userAgent); in UserAgentParser()
75 UserAgent userAgent = new UserAgent(); in parse() local
91 userAgent.addProductToken('(' + comment + ')'); in parse()
121 userAgent.addProductToken(productSb.toString()); in parse()
131 return userAgent; in parse()
136userAgent[] = { "User-Agent: Softphone/Beta1.5 \n", "User-Agent:Nist/Beta1 (beta version) \n", "Us… in main() local
141 for (int i = 0; i < userAgent.length; i++ ) { UserAgentParser parser = in main()
142 new UserAgentParser(userAgent[i]); UserAgent ua= (UserAgent) in main()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DTunnelRequest.java34 final String userAgent; field in TunnelRequest
44 public TunnelRequest(String host, int port, String userAgent, String proxyAuthorization) { in TunnelRequest() argument
46 if (userAgent == null) throw new NullPointerException("userAgent == null"); in TunnelRequest()
49 this.userAgent = userAgent; in TunnelRequest()
68 result.header("User-Agent", userAgent); in getRequest()
DRequest.java105 return parsedHeaders().userAgent; in getUserAgent()
132 private String userAgent; field in Request.ParsedHeaders
140 userAgent = value; in ParsedHeaders()
295 public Builder setUserAgent(String userAgent) {
296 return header("User-Agent", userAgent);
/external/nist-sip/java/gov/nist/javax/sip/message/
DMessageFactoryImpl.java65 private static UserAgentHeader userAgent; field in MessageFactoryImpl
142 if ( userAgent != null ) { in createRequest()
143 sipRequest.setHeader(userAgent); in createRequest()
201 if ( userAgent != null ) { in createRequest()
202 sipRequest.setHeader(userAgent); in createRequest()
250 if (userAgent != null) { in createRequest()
251 sipRequest.setHeader(userAgent); in createRequest()
310 if (userAgent != null) { in createResponse()
311 sipResponse.setHeader(userAgent); in createResponse()
362 if (userAgent != null) { in createResponse()
[all …]
DMessageFactoryExt.java24 public void setDefaultUserAgentHeader(UserAgentHeader userAgent); in setDefaultUserAgentHeader() argument
38 public void setDefaultServerHeader(ServerHeader userAgent); in setDefaultServerHeader() argument
/external/chromium_org/third_party/WebKit/Source/core/workers/
DWorkerNavigator.cpp33 WorkerNavigator::WorkerNavigator(const String& userAgent) in WorkerNavigator() argument
34 : m_userAgent(userAgent) in WorkerNavigator()
43 String WorkerNavigator::userAgent() const in userAgent() function in WebCore::WorkerNavigator
DWorkerNavigator.h44 static PassRefPtrWillBeRawPtr<WorkerNavigator> create(const String& userAgent) in create() argument
46 return adoptRefWillBeNoop(new WorkerNavigator(userAgent)); in create()
50 virtual String userAgent() const OVERRIDE;
DWorkerThreadStartupData.h50 …tr<WorkerThreadStartupData> create(const KURL& scriptURL, const String& userAgent, const String& s… in create() argument
52 …return adoptPtrWillBeNoop(new WorkerThreadStartupData(scriptURL, userAgent, sourceCode, startMode,… in create()
68 …WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, const String& sourceCode, …
DWorkerThreadStartupData.cpp38 WorkerThreadStartupData::WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, co… in WorkerThreadStartupData() argument
40 , m_userAgent(userAgent.isolatedCopy()) in WorkerThreadStartupData()
DSharedWorkerGlobalScope.cpp60 …redWorkerGlobalScope(const String& name, const KURL& url, const String& userAgent, SharedWorkerThr… in SharedWorkerGlobalScope() argument
61 : WorkerGlobalScope(url, userAgent, thread, monotonicallyIncreasingTime(), workerClients) in SharedWorkerGlobalScope()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/common/
DPlatform.js76 const userAgent = navigator.userAgent;
79 var match = userAgent.match(/Windows NT (\d+)\.(?:\d+)/);
84 var match = userAgent.match(/Mac OS X\s*(?:(\d+)_(\d+))?/);
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DHttpHeadRequestTest.java45 String userAgent = "jUnit 4.8.2 Unit Test"; in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() local
46 invokeServer("HEAD " + URI + " HTTP/1.1\nUser-Agent: " + userAgent + "\n"); in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
47 assertEquals(userAgent, testServer.header.get("user-agent")); in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
54 String userAgent = "jUnit 4.8.2 Unit Test"; in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() local
56 invokeServer("HEAD " + URI + " HTTP/1.1\nUser-Agent: " + userAgent + "\nAccept: " + accept); in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
57 assertEquals(userAgent, testServer.header.get("user-agent")); in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
DHttpGetRequestTest.java58 String userAgent = "jUnit 4.8.2 Unit Test"; in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() local
59 invokeServer("GET " + URI + " HTTP/1.1\nUser-Agent: " + userAgent + "\n"); in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
60 assertEquals(userAgent, testServer.header.get("user-agent")); in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
67 String userAgent = "jUnit 4.8.2 Unit Test"; in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() local
69 invokeServer("GET " + URI + " HTTP/1.1\nUser-Agent: " + userAgent + "\nAccept: " + accept); in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
70 assertEquals(userAgent, testServer.header.get("user-agent")); in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sdk/
DOverridesSupport.js83 WebInspector.OverridesSupport.Device = function(description, userAgent) argument
89 this.userAgent = userAgent;
497 this.settings.userAgent.set(device.userAgent);
517 this.settings.userAgent.set("");
543 return this.settings.userAgent.get() === device.userAgent
562 this.settings.userAgent.addChangeListener(this._userAgentChanged, this);
622 var userAgent = this.emulationEnabled() ? this.settings.userAgent.get() : "";
623 NetworkAgent.setUserAgentOverride(userAgent);
624 if (this._userAgent !== userAgent)
626 this._userAgent = userAgent;
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/volley/
DRequestQueueWrapper.java30 String userAgent = "volley/0"; in getRequestQueue() local
34 userAgent = packageName + "/" + info.versionCode; in getRequestQueue()
44 stack = new HttpClientStack(AndroidHttpClient.newInstance(userAgent)); in getRequestQueue()
/external/chromium_org/components/cronet/android/java/src/org/chromium/net/
DUrlRequestContext.java36 protected UrlRequestContext(Context context, String userAgent, in UrlRequestContext() argument
39 userAgent, getLoggingLevel(), config); in UrlRequestContext()
127 String userAgent, int loggingLevel, String config); in nativeCreateRequestContextPeer() argument
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DMediaResourceGetter.java116 final String userAgent) { in extractMediaMetadata() argument
118 context, url, cookies, userAgent); in extractMediaMetadata()
140 final String cookies, final String userAgent) { in extract() argument
145 if (!configure(context, url, cookies, userAgent)) { in extract()
211 boolean configure(Context context, String url, String cookies, String userAgent) { in configure() argument
247 if (!TextUtils.isEmpty(userAgent)) { in configure()
248 headersMap.put("User-Agent", userAgent); in configure()
/external/apache-http/src/org/apache/http/params/
DHttpProtocolParamBean.java54 public void setUserAgent (final String userAgent) { in setUserAgent() argument
55 HttpProtocolParams.setUserAgent(params, userAgent); in setUserAgent()
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
DAwContentsClientCallbackHelper.java37 String userAgent, in DownloadInfo() argument
42 mUserAgent = userAgent; in DownloadInfo()
165 public void postOnDownloadStart(String url, String userAgent, String contentDisposition, in postOnDownloadStart() argument
167 DownloadInfo info = new DownloadInfo(url, userAgent, contentDisposition, mimeType, in postOnDownloadStart()
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/
DTestAwContentsClient.java172 public void notifyCalled(String url, String userAgent, String contentDisposition, in notifyCalled() argument
175 mUserAgent = userAgent; in notifyCalled()
185 String userAgent, in onDownloadStart() argument
189 getOnDownloadStartHelper().notifyCalled(url, userAgent, contentDisposition, mimeType, in onDownloadStart()
/external/chromium_org/chrome/browser/resources/sync_internals/
Ddata.js121 var userAgent = window.navigator.userAgent;
122 var dateUaHeader = [now.toISOString(), userAgent].join(',');
/external/chromium_org/third_party/WebKit/Source/core/frame/
DNavigator.cpp79 String Navigator::userAgent() const in userAgent() function in WebCore::Navigator
85 return m_frame->loader().userAgent(m_frame->document()->url()); in userAgent()
/external/chromium_org/third_party/qunit/src/
Dqunit.css14 #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-tes…
18 #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small;…
24 #qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilte…
71 #qunit-userAgent {
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DInspectorFrontendHostStub.js62 var match = navigator.userAgent.match(/Windows NT/);
65 match = navigator.userAgent.match(/Mac OS X/);

123456