This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plymouth/src/libply/ply-key-file.c | |
static bool | |
ply_key_file_load_groups (ply_key_file_t *key_file) | |
{ | |
int items_matched; | |
bool added_group = false; | |
bool has_comments = false; | |
do { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/IccUtils.java | |
static int | |
hexCharToInt(char c) { | |
if (c >= '0' && c <= '9') return (c - '0'); | |
if (c >= 'A' && c <= 'F') return (c - 'A' + 10); | |
if (c >= 'a' && c <= 'f') return (c - 'a' + 10); | |
throw new RuntimeException ("invalid hex char '" + c + "'"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frameworks/base/telephony/java/com/android/internal/telephony/GsmAlphabet.java | |
static { | |
int numTables = sLanguageTables.length; | |
sCharsToGsmTables = new SparseIntArray[numTables]; | |
for (int i = 0; i < numTables; i++) { | |
String table = sLanguageTables[i]; | |
int tableLen = table.length(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://code.google.com/p/chromium/codesearch#chromium/src/base/pickle.cc | |
// Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
#include "base/pickle.h" | |
#include <stdlib.h> | |
#include <algorithm> // for max() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import io | |
import re | |
import requests | |
from bs4 import BeautifulSoup | |
from time import sleep | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* $OpenBSD: strtol.c,v 1.10 2014/09/13 20:10:12 schwarze Exp $ */ | |
/* | |
* Copyright (c) 1990 The Regents of the University of California. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* libs/cutils/record_stream.c | |
** | |
** Copyright 2006, The Android Open Source Project | |
** | |
** Licensed under the Apache License, Version 2.0 (the "License"); | |
** you may not use this file except in compliance with the License. | |
** You may obtain a copy of the License at | |
** | |
** http://www.apache.org/licenses/LICENSE-2.0 | |
** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
''' | |
Copyright 2009, The Android Open Source Project | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//bionic/libc/stdio/stdio.c | |
int | |
__sread(void *cookie, char *buf, int n) | |
{ | |
FILE *fp = cookie; | |
int ret; | |
ret = TEMP_FAILURE_RETRY(read(fp->_file, buf, n)); | |
/* if the read succeeded, update the current offset */ | |
if (ret >= 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2010 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
OlderNewer