/external/python/cpython3/Tools/freeze/ |
H A D | bkfile.py | 3 def open(file, mode='r', bufsize=-1): 4 if 'w' not in mode: 5 return _orig_open(file, mode, bufsize) 15 return _orig_open(file, mode, bufsize) 16 f = _orig_open(file, mode, bufsize)
|
/external/skia/src/gpu/ |
H A D | GrWindowRectsState.h | 21 GrWindowRectsState(const GrWindowRectangles& windows, Mode mode) argument 22 : fMode(mode) 27 Mode mode() const { return fMode; } function in class:GrWindowRectsState 36 void set(const GrWindowRectangles& windows, Mode mode) { argument 37 fMode = mode;
|
/external/skia/src/gpu/effects/ |
H A D | GrBlurredEdgeFragmentProcessor.h | 20 Mode mode() const { return fMode; } function in class:GrBlurredEdgeFragmentProcessor::Mode 21 static std::unique_ptr<GrFragmentProcessor> Make(Mode mode) { argument 22 return std::unique_ptr<GrFragmentProcessor>(new GrBlurredEdgeFragmentProcessor(mode)); 29 GrBlurredEdgeFragmentProcessor(Mode mode) argument 31 , fMode(mode) {}
|
/external/skqp/src/gpu/ |
H A D | GrWindowRectsState.h | 21 GrWindowRectsState(const GrWindowRectangles& windows, Mode mode) argument 22 : fMode(mode) 27 Mode mode() const { return fMode; } function in class:GrWindowRectsState 36 void set(const GrWindowRectangles& windows, Mode mode) { argument 37 fMode = mode;
|
/external/skqp/src/gpu/effects/ |
H A D | GrBlurredEdgeFragmentProcessor.h | 20 Mode mode() const { return fMode; } function in class:GrBlurredEdgeFragmentProcessor::Mode 21 static std::unique_ptr<GrFragmentProcessor> Make(Mode mode) { argument 22 return std::unique_ptr<GrFragmentProcessor>(new GrBlurredEdgeFragmentProcessor(mode)); 29 GrBlurredEdgeFragmentProcessor(Mode mode) argument 31 , fMode(mode) {}
|
/external/strace/tests/ |
H A D | umode_t.c | 45 test_syscall(unsigned short mode) argument 47 unsigned long lmode = (unsigned long) 0xffffffffffff0000ULL | mode; 51 if (mode <= 07) 54 sample, (int) mode, rc, errno2name()); 58 sample, mode, rc, errno2name());
|
/external/strace/tests-m32/ |
H A D | umode_t.c | 45 test_syscall(unsigned short mode) argument 47 unsigned long lmode = (unsigned long) 0xffffffffffff0000ULL | mode; 51 if (mode <= 07) 54 sample, (int) mode, rc, errno2name()); 58 sample, mode, rc, errno2name());
|
/external/strace/tests-mx32/ |
H A D | umode_t.c | 45 test_syscall(unsigned short mode) argument 47 unsigned long lmode = (unsigned long) 0xffffffffffff0000ULL | mode; 51 if (mode <= 07) 54 sample, (int) mode, rc, errno2name()); 58 sample, mode, rc, errno2name());
|
/external/v8/src/ast/ |
H A D | variables.cc | 17 Variable::Variable(Scope* scope, const AstRawString* name, VariableMode mode, argument 28 VariableModeField::encode(mode) | IsUsedField::encode(false) | 33 DCHECK(!(mode == VAR && initialization_flag == kNeedsInitialization)); 40 return (IsDynamicVariableMode(mode()) || mode() == VAR) &&
|
/external/ltp/testcases/kernel/syscalls/open/ |
H A D | open11.c | 100 mode_t mode; member in struct:test_case 111 .mode = 0644, 118 .mode = 0644, 125 .mode = 0644, 132 .mode = 0644, 139 .mode = 0644, 149 .mode = 0755, 156 .mode = 0755, 163 .mode = 0644, 173 .mode [all...] |
/external/python/cpython2/Modules/zlib/ |
H A D | gzlib.c | 79 if (state->mode == GZ_READ) { /* for reading ... */ 91 local gzFile gz_open(path, fd, mode) 94 const char *mode; 118 /* interpret mode */ 119 state->mode = GZ_NONE; 123 while (*mode) { 124 if (*mode >= '0' && *mode <= '9') 125 state->level = *mode - '0'; 127 switch (*mode) { [all...] |
/external/python/cpython3/Modules/zlib/ |
H A D | gzlib.c | 79 if (state->mode == GZ_READ) { /* for reading ... */ 91 local gzFile gz_open(path, fd, mode) 94 const char *mode; 118 /* interpret mode */ 119 state->mode = GZ_NONE; 123 while (*mode) { 124 if (*mode >= '0' && *mode <= '9') 125 state->level = *mode - '0'; 127 switch (*mode) { [all...] |
/external/zlib/src/ |
H A D | gzlib.c | 79 if (state->mode == GZ_READ) { /* for reading ... */ 91 local gzFile gz_open(path, fd, mode) 94 const char *mode; 118 /* interpret mode */ 119 state->mode = GZ_NONE; 123 while (*mode) { 124 if (*mode >= '0' && *mode <= '9') 125 state->level = *mode - '0'; 127 switch (*mode) { [all...] |
/external/autotest/server/cros/ap_configurators/ |
H A D | ap_spec_unittest.py | 22 self.assertEquals(spec.mode, ap_spec.DEFAULT_2GHZ_MODE) 31 self.assertEquals(spec.mode, ap_spec.DEFAULT_2GHZ_MODE) 38 self.assertEquals(spec.mode, ap_spec.DEFAULT_5GHZ_MODE) 42 """Test setting only a 2GHz mode.""" 43 spec = ap_spec.APSpec(mode=ap_spec.MODE_B) 49 """Test setting only a 5GHz mode.""" 50 spec = ap_spec.APSpec(mode=ap_spec.MODE_A) 56 """Test setting the mode to N.""" 57 spec = ap_spec.APSpec(mode=ap_spec.MODE_N) 66 self.assertEquals(spec.mode, ap_spe [all...] |
/external/mesa3d/src/mesa/main/ |
H A D | polygon.c | 45 * \param mode culling mode. 54 _mesa_CullFace( GLenum mode ) 59 _mesa_debug(ctx, "glCullFace %s\n", _mesa_enum_to_string(mode)); 61 if (mode!=GL_FRONT && mode!=GL_BACK && mode!=GL_FRONT_AND_BACK) { 66 if (ctx->Polygon.CullFaceMode == mode) 70 ctx->Polygon.CullFaceMode = mode; 73 ctx->Driver.CullFace( ctx, mode ); [all...] |
/external/deqp/framework/delibs/deutil/ |
H A D | deFile.c | 66 static int mapOpenMode (deFileMode mode) argument 71 DE_ASSERT((mode & DE_FILEMODE_READ) != 0 || ((mode & DE_FILEMODE_WRITE) != 0)); 73 /* Create, open or create and open mode is required. */ 74 DE_ASSERT((mode & DE_FILEMODE_OPEN) != 0 || ((mode & DE_FILEMODE_CREATE) != 0)); 77 DE_ASSERT(!(mode & DE_FILEMODE_CREATE) || (mode & DE_FILEMODE_WRITE)); 80 DE_ASSERT(!(mode & DE_FILEMODE_TRUNCATE) || ((mode 100 deFile_create(const char* filename, deUint32 mode) argument 241 deFile_create(const char* filename, deUint32 mode) argument [all...] |
/external/ltp/testcases/kernel/syscalls/chmod/ |
H A D | chmod01.c | 24 * Verify that, chmod(2) succeeds when used to change the mode permissions 28 * chmod(2) should return 0 and the mode permissions set on file should match 29 * the specified mode. 97 int mode; local 110 mode = modes[i]; 112 TEST(chmod(TESTFILE, mode)); 117 mode); 125 if (stat_buf.st_mode == mode) 128 TESTFILE, mode); 133 mode); [all...] |
/external/ltp/testcases/kernel/syscalls/fchmod/ |
H A D | fchmod07.c | 24 * Verify that, fchmod(2) succeeds when used to change the mode permissions 28 * fchmod(2) should return 0 and the mode permissions set on file should match 29 * the specified mode. 96 int mode; /* file mode permission */ local 109 mode = Modes[ind]; 112 * Call fchmod(2) with different mode permission 115 TEST(fchmod(fd, mode)); 119 "errno=%d : %s", fd, mode, TEST_ERRNO, 136 * Check for expected mode permission [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_util.c | 36 GLuint brw_translate_blend_equation( GLenum mode ) 38 switch (mode) { 120 get_hw_prim_for_gl_prim(int mode) argument 122 if (mode >= BRW_PRIM_OFFSET) 123 return mode - BRW_PRIM_OFFSET; 125 assert(mode < ARRAY_SIZE(prim_to_hw_prim)); 126 return prim_to_hw_prim[mode];
|
/external/tensorflow/tensorflow/contrib/layers/python/layers/ |
H A D | initializers.py | 56 return variance_scaling_initializer(factor=1.0, mode='FAN_AVG', 62 def variance_scaling_initializer(factor=2.0, mode='FAN_IN', uniform=False, 71 if mode='FAN_IN': # Count only number of input connections. 73 elif mode='FAN_OUT': # Count only number of output connections. 75 elif mode='FAN_AVG': # Average number of inputs and output connections. 84 `factor=2.0 mode='FAN_IN' uniform=False` 87 `factor=1.0 mode='FAN_IN' uniform=True` 91 `factor=1.0 mode='FAN_AVG' uniform=True.` 93 `factor=1.0 mode='FAN_AVG' uniform=True`, or<br/> 94 `factor=1.0 mode [all...] |
/external/libopus/silk/ |
H A D | control_audio_bandwidth.c | 60 psEncC->sLP.mode = 0; 67 if( psEncC->sLP.mode == 0 ) { 76 psEncC->sLP.mode = 0; 87 psEncC->sLP.mode = -2; 107 psEncC->sLP.mode = 1; 109 if( psEncC->sLP.mode == 0 ) { 115 psEncC->sLP.mode = 1; 119 if (psEncC->sLP.mode<0) 120 psEncC->sLP.mode = 1;
|
/external/syslinux/gpxe/src/drivers/net/ath5k/ |
H A D | ath5k_eeprom.c | 73 unsigned int mode) 80 if (mode == AR5K_EEPROM_MODE_11A) { 168 unsigned int mode) 176 ee->ee_switch_settling[mode] = (val >> 8) & 0x7f; 177 ee->ee_atn_tx_rx[mode] = (val >> 2) & 0x3f; 178 ee->ee_ant_control[mode][i] = (val << 4) & 0x3f; 181 ee->ee_ant_control[mode][i++] |= (val >> 12) & 0xf; 182 ee->ee_ant_control[mode][i++] = (val >> 6) & 0x3f; 183 ee->ee_ant_control[mode][i++] = val & 0x3f; 186 ee->ee_ant_control[mode][ 72 ath5k_eeprom_bin2freq(struct ath5k_eeprom_info *ee, u16 bin, unsigned int mode) argument 167 ath5k_eeprom_read_ants(struct ath5k_hw *ah, u32 *offset, unsigned int mode) argument 227 ath5k_eeprom_read_modes(struct ath5k_hw *ah, u32 *offset, unsigned int mode) argument 408 ath5k_eeprom_read_turbo_modes(struct ath5k_hw *ah, u32 *offset, unsigned int mode) argument 463 unsigned int mode; local 506 ath5k_eeprom_read_freq_list(struct ath5k_hw *ah, int *offset, int max, struct ath5k_chan_pcal_info *pc, unsigned int mode) argument 598 ath5k_eeprom_init_11bg_2413(struct ath5k_hw *ah, unsigned int mode, int offset) argument 663 ath5k_eeprom_convert_pcal_info_5111(struct ath5k_hw *ah, int mode, struct ath5k_chan_pcal_info *chinfo) argument 735 ath5k_eeprom_read_pcal_info_5111(struct ath5k_hw *ah, int mode) argument 844 ath5k_eeprom_convert_pcal_info_5112(struct ath5k_hw *ah, int mode, struct ath5k_chan_pcal_info *chinfo) argument 950 ath5k_eeprom_read_pcal_info_5112(struct ath5k_hw *ah, int mode) argument 1086 ath5k_pdgains_size_2413(struct ath5k_eeprom_info *ee, unsigned int mode) argument 1100 ath5k_cal_data_offset_2413(struct ath5k_eeprom_info *ee, int mode) argument 1129 ath5k_eeprom_convert_pcal_info_2413(struct ath5k_hw *ah, int mode, struct ath5k_chan_pcal_info *chinfo) argument 1208 ath5k_eeprom_read_pcal_info_2413(struct ath5k_hw *ah, int mode) argument 1399 ath5k_eeprom_read_target_rate_pwr_info(struct ath5k_hw *ah, unsigned int mode) argument 1497 int mode; local 1525 ath5k_eeprom_free_pcal_info(struct ath5k_hw *ah, int mode) argument 1574 u8 mode; local [all...] |
/external/autotest/client/site_tests/cellular_GobiPorts/ |
H A D | cellular_GobiPorts.py | 24 mode = os.stat(port).st_mode 25 if not stat.S_ISCHR(mode): 26 logging.error('Port %s is not a character device. mode = %s' % ( 27 port, mode))
|
/external/autotest/client/site_tests/video_WebRtcMainFeedSwitching/ |
H A D | video_WebRtcMainFeedSwitching.py | 19 def run_once(self, mode = 'functional'): 23 @param mode: 'functional' or 'performance' depending on desired mode. 35 if mode == 'functional': 40 elif mode == 'performance': 48 raise error.TestError('mode must be "functional" or "performance"')
|
/external/autotest/client/site_tests/video_WebRtcResolutionSwitching/ |
H A D | video_WebRtcResolutionSwitching.py | 16 def run_once(self, mode = 'functional'): 20 @param mode: 'functional' or 'performance' depending on desired mode. 32 if mode == 'functional': 37 elif mode == 'performance': 45 raise error.TestError('mode must be "functional" or "performance"')
|